How do you pass two URL parameters to a page in PHP
The following bit of code is based on some David Powers code in his book PHP solutions - a book to be highly recommended :
'<a href= "'. $_SERVER['PHP_SELF']. '?curpage=' .($curpage+1) .'" > Next > </a>';
This is used to navigate from page to page and when clicked, produces a URL ending
.showflagsab?curpage=3
It works fine when the SQL Query is something like "SELECT * from table"
However, my SQL Query is like "SELECT * from table where ID= 5", so as well as passing the current page variable, I also need to pass the ID variable.
It would show like showflagsab.php?curpage=3&id=5
I spent ages trying to get the syntax correct, but so far have not succeeded.
Can you help?
Howard Walker