Re: Select record by ID
| From: | Craige Leeder | Date: | Wed, 31 Jan 2007 01:23:01 +0000 |
| Subject: | Re: Select record by ID | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248074@lists.php.net to get a copy of this message | ||
atleast this part: $user_id = mysql_real_escape_string((int) $_GET['user_id']);I'm not sure who put this in there, but you don't need to use mysql_real_escape_string() on that value if you're type casting it. If you are forcing it to be an integer, there is nothing to escape. Integers are perfectly fine to be put into a query as they are. - Craige