View Single Post
Old 10-11-2012, 03:08 AM   PM User | #7
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
Then that would be something like this.

PHP Code:

        
//update the status table 
         
$query "INSERT INTO member_status(mem_id, status) 
                       VALUES ('$userid', '$status')
                       ON DUPLICATE KEY UPDATE status = '$status' "


        
$retvalu=mysql_query($query,$link) or die(mysql_error()); 

Last edited by durangod; 10-11-2012 at 07:55 AM.. Reason: removed single quotes from field names, oops lol
durangod is offline   Reply With Quote