note 91504 deleted from function.mysql-real-escape-string by philip

From: Date: Fri, 04 Sep 2015 19:58:36 +0000
Subject: note 91504 deleted from function.mysql-real-escape-string by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-203663@lists.php.net to get a copy of this message
Note Submitter: info at saturnprods dot com ---- I always use this function so I don't have to retype over and over the mysql_real_escape_string function. <?php function safe($value){ return mysql_real_escape_string($value); } ?> Then, when I am using my code, I simply use: <?php $name = safe($_POST["name"]); $password = safe($_POST["password"]); ?>

« previous php.notes (#203663) next »