htmlspecialchars_decode

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

htmlspecialchars_decode

Post by shaqa »

im getting
Fatal error: Call to undefined function: htmlspecialchars_decode() in /home/public_html/movies.php on line 44
my server is php5 and script work in php4 could tell how do i fix for htmlspecialchars_decode ?

Code: Select all

$ht[mvdata]=htmlspecialchars_decode($ht[mvdata]);
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: htmlspecialchars_decode

Post by shaqa »

this are my some other code:

Code: Select all

    $ht[mvdata]=htmlspecialchars_decode($ht[mvdata]);
    $ht[mvpro]=htmlspecialchars( $ht[mvpro] , ENT_QUOTES );
    $query=mysql_query("select `mvid` from mv_review where `mvid`='$cgi'");
im not good in php how do i fix this!!!?
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: htmlspecialchars_decode

Post by Zoxive »

shaqa wrote:this are my some other code:

Code: Select all

   $ht[mvdata]=htmlspecialchars_decode($ht[mvdata]);
    $ht[mvpro]=htmlspecialchars( $ht[mvpro] , ENT_QUOTES );
    $query=mysql_query("select `mvid` from mv_review where `mvid`='$cgi'");
im not good in php how do i fix this!!!?
Jcart gave you exactly what you needed, because htmlspecialchars_decode is a php5 function, and you are running php4.

Take a look at the link he supplied.
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: htmlspecialchars_decode

Post by shaqa »

yes thnx for that but i dont understand how do i use my strings where to add how to use in my file than...etc.....
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: htmlspecialchars_decode

Post by shaqa »

anybody can help me?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: htmlspecialchars_decode

Post by John Cartwright »

Copy+paste that code to the top of your file you want to use it, alternatively put that function in it's own file then include() it on every page you need the function available.
Post Reply