Re: [PHP] Re: Post variables and mysql queries

2003-10-27 Thread Eugene Lee
On Mon, Oct 27, 2003 at 09:38:32AM -0800, Justin Patrin wrote: : : $query='Select * from users where userid="'.$_POST['userid'].'"'; : : I tend to use single quotes whenever I can and to use concatenation : instead of using in-string variables. I do this for three reasons. The : first is effici

[PHP] Re: Post variables and mysql queries

2003-10-27 Thread Justin Patrin
$query='Select * from users where userid="'.$_POST['userid'].'"'; I tend to use single quotes whenever I can and to use concatenation instead of using in-string variables. I do this for three reasons. The first is efficiency. Strings surrounded by single chars are not parsed for any values, suc

[PHP] Re: Post variables and mysql queries

2003-10-27 Thread pete M
$query="Select * from users where userid='".$_POST['userid']."'"; ;-) pete Luis Lebron wrote: This may be a dumb question but here goes. I have been trying to use $_POST globals in sql queries. If I use the following query string it does not work $query="Select * from users where userid='$_POST