Ignorant_Hog Posted March 2, 2007 Share Posted March 2, 2007 Hi, I have been given the task of building a webpage for my company. I've been using Dreamweaver MX to create it and have been doing ok, until now! Basically I have got a Database with a stock list table. I want to display a stock list from this table. I then want to display 25 records at a time. Then I want to be able to go the next page of records or previous or first of last page etc... Well i had thought I had managed this as I got it all workong on my localhost testing server, however when I uploaded it all to the hosting companies server (Yes I imported the database and changed the DB connection settings to connect to the DB online rather than on my testing server) I try and click on next for example and it just brings up the same 25 rows from the table. I am just about ready to admit defeat so any help would be appreciated. The code for the page can be found at: http://www.cell-limited.co.uk/darnit.txt and the actual page is at: http://www.cell-limited.co.uk/productList.php I'd be grateful for any help you can give! Cheers Hog! Link to comment https://forums.phpfreaks.com/topic/40789-problem-with-record-paging-using-dreamweaver-mx/ Share on other sites More sharing options...
bwochinski Posted March 2, 2007 Share Posted March 2, 2007 Check through the first 10 lines of the script and echo some of the variables. It looks like $pageNum_StockList isn't getting set to the GET variable, since it always seems to be 0. Link to comment https://forums.phpfreaks.com/topic/40789-problem-with-record-paging-using-dreamweaver-mx/#findComment-197488 Share on other sites More sharing options...
Ignorant_Hog Posted March 4, 2007 Author Share Posted March 4, 2007 Hi, I troed the above and yeah there seems to be a problem with getting the variables with HTTP_GET_VAR, so I tried using HTTP_POST_VAR with no success either. So I've tried using <?php echo $REQUEST_METHOD; ?> and <?php echo $SERVER['REQUEST_METHOD']; ?> to see wether the system uses POST or GET but I get a nothing returned as a string! Can Anyone help! Cheers! Link to comment https://forums.phpfreaks.com/topic/40789-problem-with-record-paging-using-dreamweaver-mx/#findComment-199260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.