My database is setup like this
vid title
1 test
2 test
1 test2
3 test
4 test
1 test3
5 test
6 test
Point is to get the previous version of something while deleting the last one. So I want to delete version 6 of test and get the previous version of it, which will be version 5. What is the PHP/MySQL-syntax for this?
1 Answer