i dont know what i'm doing wrong i'm trying to get all the fields from a
specific row by user name i'm using php and i got the connection string down
and i made a query like this:
$query = mysql_query("SE LECT * FROM <DBname> WHERE name = $_POST[user]");
the variable $_POST[user] was passed to the php code from a previous html
form i get the error:
Unknown column '<username here>' in 'where clause'
the <username here> part shows whatever i typed in my previous form as a
user name
i'm guessing i'm using the wrong syntax and i cant find any help on it
perhaps some one could explain this to me and point me to a site or manual
on this sort of thing. i treid php.net but they have mostly different
functions i couldnt find this one there
TIA
~ K.R
specific row by user name i'm using php and i got the connection string down
and i made a query like this:
$query = mysql_query("SE LECT * FROM <DBname> WHERE name = $_POST[user]");
the variable $_POST[user] was passed to the php code from a previous html
form i get the error:
Unknown column '<username here>' in 'where clause'
the <username here> part shows whatever i typed in my previous form as a
user name
i'm guessing i'm using the wrong syntax and i cant find any help on it
perhaps some one could explain this to me and point me to a site or manual
on this sort of thing. i treid php.net but they have mostly different
functions i couldnt find this one there
TIA
~ K.R
Comment