$res = mysql_query("SELECT * FROM APP_TASKS WHERE ID > '$ID'") or die('<error>'.mysql_error().'</error>');
I have this search, it works well while in the middle of the table but what if i'm in the last row how can i get it to start from the first row again??
Help! My table has ID's 1,2,3,4,5
If ID = 5 I want it to get record number 1