MySQL Forums
Forum List  »  PHP

Re: swap rows in database
Posted by: Peter Brawley
Date: May 27, 2016 05:10AM

> You can use single line code to swap the id with mysql_query("UPDATE $table SET intid='$id1' where intid='$id2'")

That will not effect a swap.

Options: ReplyQuote


Subject
Written By
Posted
May 23, 2016 01:10AM
Re: swap rows in database
May 27, 2016 05:10AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.