Re: [PHP] Select record by ID
- From: cleeder@xxxxxxxxx ("Craige Leeder")
- Date: Tue, 30 Jan 2007 20:23:01 -0500
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
.
- References:
- Re: [PHP] Select record by ID
- From: "nitrox ."
- Re: [PHP] Select record by ID
- From: Paul Novitski
- Re: [PHP] Select record by ID
- Prev by Date: Re: [PHP] return bounced email to specific email address
- Next by Date: ereg() problem
- Previous by thread: Re: [PHP] Select record by ID
- Next by thread: Help wtih a query?
- Index(es):