Hi,
I am a Newbie to PHP and SQL so all help and explaination would be greatfully received.
Please could anyone please tell and show me what I have done wrong with the script below...I have tried all combinations, I get no errors, but neither do I
get any result.
I have hard written the email query address to match one of the many email addresses in the Table to cut down on problems. The mySQL table (AUCTION_invitedbuyerslist) contains list_name (email address),user_id (intro id number).
The list_name column is set as PRIMARY ...should it be INDEX?
Anyway, it will not retrive the user_id...arrrrgghhh
//get intro users id
$query = "SELECT user_id from AUCTION_invitedbuyerslist where list_name = 'test@mysite.co.uk'";
$res = mysql_query($query);
if(!$res) {
MySQLError($query);
exit;
}
$intro_id = $res;[/B]
Many thanks in anticipation
John 🙂