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
https://forums.phpfreaks.com/topic/64983-update/
Share on other sites

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.