MySQL Forums
Forum List  »  PHP

Re: swap rows in database
Posted by: Madhuresh Desai
Date: May 27, 2016 02:32AM

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

Options: ReplyQuote


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


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.