Re[2]: [PHP-DB] "global" variables
| From: | Richard Davey | Date: | Mon, 01 Mar 2004 18:23:07 +0000 |
| Subject: | Re[2]: [PHP-DB] "global" variables | ||
| References: | 1 2 3 4 5 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33240@lists.php.net to get a copy of this message | ||
Hello Torsten,
Monday, March 1, 2004, 6:30:11 PM, you wrote:
TL> You mean this will unset $v_dec["page_no"]?
Well $page_no at that point in your script equals nothing, so yes - it
will always make $v_dec equal nothing.
TL> This explains why at reload of index.php happens what happend.
TL> But how to solve it? I _have_ to store some variables anywhere.
Yes agreed - but you cannot store them in a variable because they will
be lost each time the page reloads. Why not store them in a cookie?
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html