note 91504 added to function.mysql-real-escape-string

From: Date: Sat, 13 Jun 2009 19:37:44 +0000
Subject: note 91504 added to function.mysql-real-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-156839@lists.php.net to get a copy of this message
I always use this function so I don't have to retype over and over the mysql_real_escape_string function. function safe($value){ return mysql_real_escape_string($value); } Then, when I am using my code, I simply use: $name = safe($_POST["name"]); $password = safe($_POST["password"]); ---- Server IP: 69.147.83.197 Probable Submitter: 72.187.37.35 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-real-escape-string.php Edit -- https://master.php.net/note/edit/91504 Del: integrated -- https://master.php.net/note/delete/91504/integrated Del: useless -- https://master.php.net/note/delete/91504/useless Del: bad code -- https://master.php.net/note/delete/91504/bad+code Del: spam -- https://master.php.net/note/delete/91504/spam Del: non-english -- https://master.php.net/note/delete/91504/non-english Del: in docs -- https://master.php.net/note/delete/91504/in+docs Del: other reasons-- https://master.php.net/note/delete/91504 Reject -- https://master.php.net/note/reject/91504 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156839) next »