Re: problem: if / == / !=

From: Date: Fri, 01 Dec 2000 07:11:03 +0000
Subject: Re: problem: if / == / !=
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-28170@lists.php.net to get a copy of this message
Sire: magnus wrote: > > Thanks. Somehow it's still not there. When I alter the script and save > it, the browser then displays correctly on the first call only. May be > that I have things a bit mixed up with cookies and sess_variables, but I > think not as when I echo $sess_usr[name] and $row[name] for every table > row looped through, the values come out as expected. More help? > - Magnus > > Daniel Convissor wrote: > > > > if ("$write") { > > if ($sess_usr['name'] == $row['name']) { > > ... do stuff ... > > } else { > > ... do other stuff ... > > } > > } Couple things. You'll only get something echoed if $write has a value. So, on your second tries, is $write blank or unset? Beyond that, I don't know because I'm not looking at your entire code. Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#28170) next »