PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am working on a script to edit the content of several pages with a mySQL database. to do that i pass session data from another page to indicate what table i should select. I know that the session write the data since, i print it out on the same page, but it is lost as soon as the page changes. (I made a counter that would increase by 1 every refresh but that got stuck at one). Here is my code:
I set my SESSION['tbl'] in a file called main.php. That however should not be of any importance because i know that the value is set since in main.php i echo $_SESSION['tbl'] to check because of the error..
no, i did call the session_start(); i also moved it to the very top.. still didn't change anything. Is it possible that the server is somehow terminating the session as soon as the page changes?