Page 1 of 1

function : mysql_real_escape_string?

Posted: Sat Aug 09, 2003 2:07 pm
by andrewt
Has anyone having trouble with this function :

mysql_real_escape_string

I wrote :

Code: Select all

$itemo = mysql_real_escape_string("Lar's Item, %_.  is not red"); //Line 3
	
	echo $itemo . "<br>";
and it gave me this error :

Fatal error: Call to undefined function: mysql_real_escape_string() in /var/www/html/test.php on line 3

Posted: Sat Aug 09, 2003 2:51 pm
by qartis
mysql_real_escape_string() only exists in PHP version 4.3.0 and higher, that's probably your problem.

Cheers Qartis.

Posted: Sat Aug 09, 2003 4:26 pm
by andrewt
:wink:

I've ONLY installed my LINUX, MYSQL, PHP 2 week....
and I thought that my PHP is the latest version... (I've PHP 4.2.2).

Thanks again Qartis..