Hi there,
I have found this tutorial and it's great till the point where I want to display my data by a variable.
Let's say that I have in my table these fields:
- id
- name
- usort
- category
I want to display the information by category. But then, when I use the script described in the tutorial, it does not work properly as it changes the position in the table by +/-1, not with the row I want it to be changed with. Ultimately it will work when it goes up/down the appropriate row.
I guess there should be a way of fixing that by swapping the usort number, but I have to admit that my skills do not allow me to do that.
Does anyone have an idea how I could do what I would like to do?
Thanks in advance for your help.