Hi,
As you may see below I am a newbie to sql/php..
my problem is I have a 3 column table..
1st column hold an email address, second column holds an id number for another Table.
I want to extract the id number (user_id)from the associated email(list_name) match.
I have set the list_name as primary in the table and to test I have hard input the email address for the query..
What have I done wrong as it does not come back with the user_id.....arrrrrggghhh
$query = "SELECT user_id from PHPAUCTION_invitedbuyerslist where list_name = 'test@++++++++++++.co.uk'";
$res = mysql_query($query);
if(!$res) {
MySQLError($query);
exit;
}
$intro_id = $res;
once I get this sorted I wish to do the simlar with the result..so hopefully if I get this sorted first it would be easier next time...
Thanks in anticipation
John
As you may see below I am a newbie to sql/php..
my problem is I have a 3 column table..
1st column hold an email address, second column holds an id number for another Table.
I want to extract the id number (user_id)from the associated email(list_name) match.
I have set the list_name as primary in the table and to test I have hard input the email address for the query..
What have I done wrong as it does not come back with the user_id.....arrrrrggghhh
$query = "SELECT user_id from PHPAUCTION_invitedbuyerslist where list_name = 'test@++++++++++++.co.uk'";
$res = mysql_query($query);
if(!$res) {
MySQLError($query);
exit;
}
$intro_id = $res;
once I get this sorted I wish to do the simlar with the result..so hopefully if I get this sorted first it would be easier next time...
Thanks in anticipation
John