Re: [PHP] if(($mydata->address

2005-06-01 Thread John Taylor-Johnston
Jay, Thanks. Sth new learned :) Thought mine was working. It wasn't I guess. I received no errors. I have other scripts to revise :) if("" = $mydata->foo) // an error is thrown. If I come back in and finish the comparison operator (which I needed to know was broken) it fixes the conditional st

RE: [PHP] if(($mydata->address

2005-06-01 Thread Jay Blanchard
[snip] if( ($mydata->address != "") and ($mydata->addresspublic == "yes") ) { } But in other combinations, they work? if($mydata->address != ""){} or if($mydata->addresspublic == "yes"){} So what new lesson am I to learn now? :) [/snip] Always put the value first in case you accidentally try a

Re: [PHP] if(($mydata->address

2005-06-01 Thread Chris Boget
> This should be easy, but refuses to work: > if( > ($mydata->address != "") > and > ($mydata->addresspublic == "yes") > ) > { > } Are you getting any errors? If so, what are they? Also, shouldn't the code look like this: if( ($mydata->address != "") && ($mydata->addresspublic == "yes") ) { }

Re: [PHP] if(($mydata->address

2005-06-01 Thread Marek Kilimajer
John Taylor-Johnston wrote: This should be easy, but refuses to work: if( ($mydata->address != "") and ($mydata->addresspublic == "yes") ) { } But in other combinations, they work? if($mydata->address != ""){} or if($mydata->addresspublic == "yes"){} So what new lesson am I to learn now? :)