Re: need help w/ variables

From: Date: Mon, 23 Jul 2001 05:28:09 +0000
Subject: Re: need help w/ variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59127@lists.php.net to get a copy of this message
On Mon, 23 Jul 2001, Virgil Claritt wrote: > i dont quite get it what your saying > it is clearly defined at the top > $op is equal to ds > $valid is equal to yes > $msg is equal to Bad Login > > > "Reductor" <sjdtmv@tpg.com.au> wrote in message > news:002701c11335$ac5dafe0$0200a8c0@ReDucTor... > > add to the top of the script > > > > error_reporting(E_ALL & ~E_NOTICE); > > ----- Original Message ----- > > From: Virgil Claritt <vclaritt@mediaone.net> > > To: <php-general@lists.php.net> > > Sent: Monday, July 23, 2001 2:57 PM > > Subject: [PHP] need help w/ variables > > > > > > > when i use this script: > > > > > > <?php > > > session_start(); > > > if ($op == "ds") { == means "is equal?": if(1 == 1){ echo "true"; } = sets a value: $a = 1; He is suggesting to lower your error reporting so undeclaired variable sdo not produce errors. Another solution is to not call variables that have no value, or use isset() to check. -- ----------------------------------------------------------------------- destiney - (des-ti-ny) - n. 1. deity of all things "html", 2. common internet addict, 3. lover of late 80's heavy metal music, 4. Activist for the terminally un-elite; see also - cool guy, des, mr. php... It's 4:00am, your web site is still up, why are you? http://destiney.com/ -----------------------------------------------------------------------

« previous php.general (#59127) next »