Page 1 of 1
htmlspecialchars_decode
Posted: Wed Mar 05, 2008 3:10 pm
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]);
Re: htmlspecialchars_decode
Posted: Wed Mar 05, 2008 3:18 pm
by John Cartwright
Re: htmlspecialchars_decode
Posted: Wed Mar 05, 2008 3:32 pm
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!!!?
Re: htmlspecialchars_decode
Posted: Wed Mar 05, 2008 3:56 pm
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.
Re: htmlspecialchars_decode
Posted: Wed Mar 05, 2008 4:08 pm
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.....
Re: htmlspecialchars_decode
Posted: Fri Mar 07, 2008 6:47 pm
by shaqa
anybody can help me?
Re: htmlspecialchars_decode
Posted: Sat Mar 08, 2008 11:11 am
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.