Jump to content

UPDATE


jaymc

Recommended Posts

$queryf = "UPDATE `gallery` SET `valid` = '2' WHERE `valid` = '1' LIMIT 1";

 

I have that query, as you can see its going to update valid to 2 if it can find an occurance of valid equalling one and if it does it will go about its business really well

 

great!

 

However, if it can find a match and do its update I want to know what the ID is of the row affected

 

Can it be done?

 

Link to comment
Share on other sites

Guest
This topic is now 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.