Web Hosting Talk







View Full Version : mysql_real_escape_string in php4.2.2?


evilek
08-04-2004, 12:54 AM
i need function mysql_real_escape_string in php4.2.2, i cant update php to 4.3 (where this func its supported), so i must "re-add" this func. manually so how it will be looks ??

function mysql_real_escape_string($string) {
[...]
}


about this func. on php.net
http://www.php.net/mysql_real_escape_string

on mysql.com
http://dev.mysql.com/doc/mysql/en/mysql_real_escape_string.html

i need this !! thx..

evilek
08-04-2004, 06:18 AM
any idea's ?
i know it must be eregi_replace() but.. :/