Re: problem: if / == / !=

From: Date: Sat, 02 Dec 2000 14:17:00 +0000
Subject: Re: problem: if / == / !=
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-28359@lists.php.net to get a copy of this message
Thanks all, I did the same, except using integers - that is, id numbers. That seems to work. hmmm. Daniel Convissor wrote: > > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#28359) next »