Is there a function in mysql that allows me to swap two numbers from different rows?
Situation:
I wish to change sort orders for my rows with up and down arrows.
Naturally, I can SORT ORDER recID ASC and get my numbers showing from 1 to 10 in numeric order.
But, I may want to replace number 3 with 4.
So, without having to go into the database and manually change the recIDs, I'd like to swap the numbers with my PHP, or use a mysql function that swaps numbers.
Unless there's an easier way to do it, I'm all ears!