note 45042 rejected from function.mysql-escape-string by aidan
| From: | aidan@php.net | Date: | Mon, 06 Sep 2004 13:10:00 +0000 |
| Subject: | note 45042 rejected from function.mysql-escape-string by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76104@lists.php.net to get a copy of this message | ||
Note Submitter: m dot lelong at fotovista dot com
----
/**
* This is the first step for total secure database system.
* For efficient work, you need to encode every query !!
* Check this work out and feel secure ;)
*
* @param $Var Data to protect
*
* @return Encoded data
*/
function QueryEncode($data)
{
return addslashes($data);
}
For further informations, ask me !
Even if I'm quite busy (you know, guru php ... ) I can help !