ERROR: Fatal error: Call to undefined function escape_sql()

I keep getting this error and I haven’t changed anything to my page recently and it worked FINE just yesterday —

Fatal error: Call to undefined function escape_sql() in /home/needtake/public_html/tvworld/files/join.php on line 139

the code on the page around that line;

[php] if (!ereg("^[_a-z0-9-]+(.[_a-z0-9-]+)@[a-z0-9-]+(.[a-z0-9-]+)(.[a-z]{2,6})$",strtolower($_POST[‘email’]))) {
exit(“

Error

\nThat e-mail address is not valid, please use another.

”);
}
		$name = escape_sql(CleanUp($_POST['name']));
		$email = escape_sql(CleanUp($_POST['email']));
		$url = escape_sql(CleanUp($_POST['url']));
		$birthday = escape_sql(CleanUp($_POST['birthday']));
		$referral = escape_sql(CleanUp($_POST['refer']));
		$password = md5(escape_sql(CleanUp($_POST['password'])));
		$password2 = escape_sql(CleanUp($_POST['password2']));
		$status = escape_sql(CleanUp($_POST['status']));
		$level = escape_sql(CleanUp($_POST['level']));
		$collecting = escape_sql(CleanUp($_POST['collecting']));
		$prejoin = escape_sql(CleanUp($_POST['prejoin']));
		$membercard = escape_sql(CleanUp($_POST['membercard']));
		$mastered = escape_sql(CleanUp($_POST['mastered']));
		$wishlist = escape_sql(CleanUp($_POST['wishlist']));
		$biography = escape_sql(CleanUp($_POST['biography']));[/php]

need the entire page to determine what is the matter.
are you defining the function escape_sql on this page or are you including a page in which it is defined?

Sponsor our Newsletter | Privacy Policy | Terms of Service