husslela03 Posted April 18, 2010 Share Posted April 18, 2010 Hello: I would like to navigate through different .php pages. I tried using the <a href> regular link and made sure that the session_start() was on all of the pages, however when i use the links, and return to prior pages, the mysql query is wiped out. How do maintain state when i return back to a page. For example: I query all the people that are in a class, then I click on a specific person to show that person's grades, but when i return back to the main class list, it's no longer there, the sql query is wiped out and doesn't rerun on page load. Thanks, husslela03 Link to comment https://forums.phpfreaks.com/topic/198945-navigating-among-multiple-php-pages/ Share on other sites More sharing options...
-Karl- Posted April 18, 2010 Share Posted April 18, 2010 Maybe you have a mysql_close somewhere? Link to comment https://forums.phpfreaks.com/topic/198945-navigating-among-multiple-php-pages/#findComment-1044278 Share on other sites More sharing options...
husslela03 Posted April 18, 2010 Author Share Posted April 18, 2010 so do you suggest not to close mysql() on each of the scripts and leave them open? Link to comment https://forums.phpfreaks.com/topic/198945-navigating-among-multiple-php-pages/#findComment-1044281 Share on other sites More sharing options...
ignace Posted April 18, 2010 Share Posted April 18, 2010 You can't store the result resource in session's. Link to comment https://forums.phpfreaks.com/topic/198945-navigating-among-multiple-php-pages/#findComment-1044284 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.