Hello,
A friend sent me here to solve my problem, I hope someone can help me.
Here's the problem:
I have a database:
+------+--------------+
| id | data |
+------+--------------+
| 1 | image1 |
| 2 | image2 |
| 3 | image3 |
| 4 | url1 |
| 5 | url2 |
| 6 | url3 |
| 7 | description1 |
| 8 | description2 |
| 9 | description3 |
| 10 | image4 |
| 11 | image5 |
| 12 | image6 |
| 13 | url4 |
| 14 | url5 |
| 15 | url6 |
| 16 | description4 |
| 17 | description5 |
| 18 | description6 |
+------+--------------+
And I would like to make a FORM which would make new entries for image1, url1 and description1, but at the same time move the current info for 1 to the info for two:
newdata -> image1, url1, description1
image1, url1, description1 -> image2, url2, description2
image2, url2, description2 -> image3, url3, description3
image3, url3, description3 -> image4, url4, description4
image4, url4, description4 -> image5, url5, description5
image5, url5, description5 -> image6, url6, description6
image6, url6, description6 -> DELETE
I don't know how to do this in PHP and would be glad if someone could help me with this. Thanks.
/EVASiON