Re: "global" variables

From: Date: Mon, 01 Mar 2004 16:35:47 +0000
Subject: Re: "global" variables
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-33231@lists.php.net to get a copy of this message
Hello Torsten, Monday, March 1, 2004, 4:48:39 PM, you wrote: TL> I build a small web interface to a database. This should be on the PHP General list, not DB - but even so, I'll answer your question: TL> if(!isset($page_no)) TL> { TL> $page_no = "login"; TL> } TL> I declared the $page_no in my TL> #variables.php as TL> $v_dec["page_no"] = $page_no. You don't check $v_dec in your manage.php script though, you check to see if $page_no is set which it never will be, because no-where do you give it a value. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.db (#33231) next »