Re: SQL injection - mysql_real_escape_string()?
| From: | Jacob Kruger | Date: | Mon, 13 Feb 2012 07:04:24 +0000 |
| Subject: | Re: SQL injection - mysql_real_escape_string()? | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-30773@lists.php.net to get a copy of this message | ||
OK, I know they reckon using things like parameterised queries is best, and that's what have done in past with things like MSSQL server, etc., but only issue is I would like to be sure all instances of a mySQL server would support this, aside from checking PHPInfo all the time, but let me look around a bit more, and, yes, am already doing my own versions of data entry validation as well, but still...<smile>
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
----- Original Message ----- From: "Ariz Jacinto" <acjacinto@gmail.com>
To: <php-windows@lists.php.net>
Sent: Monday, February 13, 2012 8:06 AM
Subject: Re: [PHP-WIN] SQL injection - mysql_real_escape_string()?
Hi Jacob, Yes, you need to do more than just using mysql_real_escape_string() solely. I recommend the book "SQL Antipatterns: Avoiding the Pitfalls of Database Programming" by Bill Karwin http://www.amazon.com/SQL-Antipatterns-Programming-Pragmatic-Programmers/dp/1934356557 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php