create forward buttons - html - php
Posted: Tue Aug 13, 2002 7:09 pm
Yes I am new to PHP so here is my problem.
I am trying to create navigation buttons to move thru my web site. I have a mysql database with a table filled with names and pages.
I have a file called "MYFUNCTIONS.php" Here I have a function for turning on and off the database, and a function which will show you all the items which are passed into the file. Lets give the function the name "pictures."
DATABASE
name page
bob 2
sam 2
mike 3
sue 3
If iI create a index.php and call the function pictures(2)
I have the function created to show me all the names related to page 2
If I change the code and say pictures(3) then all the names on three will show.
THE QUESTION!!!!! How could I get the page to be seen user friendly. In other words I know how to create <- and -> arrows to move to new pages in html, but in PHP what do I need to do in my index.php to have a user control the function and send it as pictures($page) or something like that... all dependent on if they click the forward or back buttons on my site?
I hope you understand my question. Thanks in advanced for any help I receive.
I can also be reached at feger585@yahoo.com
Fegero
I am trying to create navigation buttons to move thru my web site. I have a mysql database with a table filled with names and pages.
I have a file called "MYFUNCTIONS.php" Here I have a function for turning on and off the database, and a function which will show you all the items which are passed into the file. Lets give the function the name "pictures."
DATABASE
name page
bob 2
sam 2
mike 3
sue 3
If iI create a index.php and call the function pictures(2)
I have the function created to show me all the names related to page 2
If I change the code and say pictures(3) then all the names on three will show.
THE QUESTION!!!!! How could I get the page to be seen user friendly. In other words I know how to create <- and -> arrows to move to new pages in html, but in PHP what do I need to do in my index.php to have a user control the function and send it as pictures($page) or something like that... all dependent on if they click the forward or back buttons on my site?
I hope you understand my question. Thanks in advanced for any help I receive.
I can also be reached at feger585@yahoo.com
Fegero