note 49066 deleted from function.mysql-real-escape-string by betz

From: Date: Tue, 07 Feb 2006 20:38:16 +0000
Subject: note 49066 deleted from function.mysql-real-escape-string by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-103229@lists.php.net to get a copy of this message
Note Submitter: boris-pieper AT t-online DOT de ---- For compatibality u could use a function like <?php function escape_string ($string) { if(version_compare(phpversion(),"4.3.0")=="-1") { mysql_escape_string($string); } else { mysql_real_escape_string($string); } } ?>

« previous php.notes (#103229) next »