Re: [PHP] RE: R: [PHP] Get "nice" variables from POST

2004-03-12 Thread Tom Meinlschmidt
oops. It's much better to use single quotes and entire variable in {} eg .. where user_id = '{$_POST['user_id']}' ... realize - POST variable user_id has no value, so in your code it will be as "select * from users where user_id ="; as a result - you have wrong sql query. /tom On Fri, 12 Mar

RE: [PHP] RE: R: [PHP] Get "nice" variables from POST

2004-03-12 Thread Tassos T
Try to use $query = "SELECT * FROM user WHERE user_id = $_POST['user_id']"; -Original Message- From: Mike Mapsnac [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 3:40 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] RE: R: [PHP] Get "nice"

[PHP] RE: R: [PHP] Get "nice" variables from POST

2004-03-12 Thread Mike Mapsnac
I try to use quotes in the query and this doesn't work. $query = "SELECT * FROM user WHERE user_id = '$_POST['user_id']}'"; But you use brackets and it works.. Why do you use brackets ? $query = "SELECT * FROM user WHERE user_id = ${_POST['user_id']}"; From: "Alessandro Vitale" <[EMAIL PROTECTED