Quote:
Originally Posted by cbkihong
They won't. Really. Unless you purposely unset() them.
It really depends on how you "send". If you just require("index2.php") from within index.php, then variables in index.php will be available to index2.php. They won't vanish.
No, I mean this: I have index.php, some variables in it, and a URL to another page, say index2.php. When user clicks index2.php, previous variables no longer exists, right?
Quote:
Originally Posted by cbkihong
What do you mean by a "database structure"? Some table data fetched? or the database /statement handle itself?
I mean a PHP class that handles all SQL stuff. Has functions such as connect(), close(), fetchrow(), etc.
Quote:
Originally Posted by cbkihong
If the "send" you meant is by means of an HTTP/meta redirect, you may always try to save some array or even objects into session. However, certain types such as database handles are not serializable and thus cannot be put in session. Therefore, you need to open a connection to the database for each HTTP request in this case. Therefore, you need to open a connection to the database for each HTTP request in this case.
So, that can't be helped...
OK, thanks for the help!