Forums
This topic is locked
Move to next buttons not adhering to recordset que
Posted 15 Apr 2003 02:30:23
1
has voted
15 Apr 2003 02:30:23 Steve Krutzler posted:
Ok, I have created a PHP search page. When I enter a keyword, it returns a list of records with that keyword in the field. When I click "next," it doesn't go to the next page of THAT query. It displays some random list of records totally unrelated to the keyword I entered. I added the record nav bar using Dreamweaver's auto-Recordset Navigation Bar function. Could Dreamweaver have an error in the PHP code that is causing this problem?Thanks!
Replies
Replied 15 Apr 2003 13:12:36
15 Apr 2003 13:12:36 Julio Taylor replied:
from what i gather, you're using url-based GET vars for your search/results system.
so the query probably uses $HTTP_GET_VARS variables as criteria.
the problem is that when you click on the "next" button, the browser is passing all the correct paging variables but may not be passing the appropiate "GET" var that you are using in your query, therefore making the query useless.
make sure that your 'next' and 'previous' buttons are also passing the necessary values.
does that help?
------------------------
Julio
PHP | MySQL | DWMX
ICQ: 19735247
MSN:
so the query probably uses $HTTP_GET_VARS variables as criteria.
the problem is that when you click on the "next" button, the browser is passing all the correct paging variables but may not be passing the appropiate "GET" var that you are using in your query, therefore making the query useless.
make sure that your 'next' and 'previous' buttons are also passing the necessary values.
does that help?
------------------------
Julio
PHP | MySQL | DWMX
ICQ: 19735247
MSN:
Replied 15 Apr 2003 13:19:33
15 Apr 2003 13:19:33 Steve Krutzler replied:
Yes that worked for me. Thanks!