Jump to content

UPDATE Issue


Cless

Recommended Posts

I have some code similar to:

 

mysql_query("UPDATE table SET slot='1' WHERE slot='2'");
mysql_query("UPDATE table SET slot='2' WHERE slot='1'");

 

Which, in the end, just does nothing, because it makes the slot be one, then sets it back to two... which isn't what I want to do.

 

I guess it is pretty difficult to explain...

 

Any ideas?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/151297-update-issue/
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.