What I am trying to do is to create a SQL driven "image viewer" of sorts, very basic.
I have set up the database and have successfully imported the data. Heres the problem, I cannot figure out how to go to the next "row" (thats the term I will use).
Actual page (http://www.namelesscreations.com/new/work.php)
Here is how I am trying to do it, when the user click the back or next it increase or decreases a counter:
echo " <input type=submit name=submit value=> onclick=&counter++ >" ;
yes, this does not work, that is my problem.
This counter adjusts the query:
$query="select * from gallery where number=$counter";
Since each "row" has its own number (starting with one) then the user can click through each "row".
Am I not even going about this correctly? Is there a easy fix that am I just over looking?
I've been messing with this for days and cannot figure it out, if you could please help that would be great.
Thanks, Jeff McKinney.