Jump to content

Update ONLY ONE row WHERE user_id = 'testID' // user_id=testID in a lot of rows!


nightkarnation

Recommended Posts

Hey Guys,

A very noob question...Here it goes:

 

I want to update the field user_id on my database table, there a lot of rows that the user_id is the same... "testID", I just want to update only ONCE.

 

mysql_query("UPDATE `users` SET status = '$StatusCheck' WHERE user_id = 'testID'"); 

 

Right now it's updating ALL the rows that have the user_id "testID". I just want to update only one.

 

Any ideas?

Thanks in advance!

Cheers!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.