mysql_real_scape_string is undefined?
Posted: Wed Jul 18, 2007 6:18 am
Hi
I was testing this cod:
but it prompted this error:
Fatal error: Call to undefined function: mysql_real_scape_string() in g:\programs\easyphp1-8\www\takfekr\htdocs\functions.php on line 39
pak() is defined in function.php like this:
Why this happens? isn't that function defined in php?
I was testing this cod:
Code: Select all
<?
include 'global.php';
$text="new to aspx
Hi
I know html and have just learnt php
now I want to start learning C# and aspx (aspX)
what are the requirements and which one should I begin with first?
Also I'm not comfortable with w3school. what sources do you suggest to use for the turorial
";
pak($text);
echo $text;
?>Fatal error: Call to undefined function: mysql_real_scape_string() in g:\programs\easyphp1-8\www\takfekr\htdocs\functions.php on line 39
pak() is defined in function.php like this:
Code: Select all
function pak($chars){
$chars= htmlspecialchars($chars);
$chars= mysql_real_scape_string($chars);
return $chars;
}