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
$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
$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
3 matches
Mail list logo