I'm using php to embed mysql code, on each page I want to show all information for the same dept:
SELECT * FROM $table where DEPT='$dept' LIMIT 1
Now I want to have two links (previous, next) which points its previous/next available record(on same DEPT).
I want to know how I can search for the next record on same DEPT and have OFFSET added to the statement?
Thanks in advance for any help.
SELECT * FROM $table where DEPT='$dept' LIMIT 1
Now I want to have two links (previous, next) which points its previous/next available record(on same DEPT).
I want to know how I can search for the next record on same DEPT and have OFFSET added to the statement?
Thanks in advance for any help.