Re: [PHP] elseif statements

2009-05-06 Thread Gary
>>He already found the problem and fixed it :)<< Correction: His problem was pointed out to him and he was able to follow instructions he he. I think I posted yesterday, but I had the double= in the script earlier, but it was givning inconsisitant answers, however when I changed the = for=

Re: [PHP] elseif statements

2009-05-06 Thread Robert Cummings
On Tue, 2009-05-05 at 22:31 -0700, Jim Lucas wrote: > Well, since nobody seems to want to answer your question, I will... :) > > It has to do with you using an assignment '=' instead of a comparison '==' > operator in your condition. He already found the problem and fixed it :) Cheers, Rob. --

Re: [PHP] elseif statements

2009-05-05 Thread Jim Lucas
Well, since nobody seems to want to answer your question, I will... :) It has to do with you using an assignment '=' instead of a comparison '==' operator in your condition. Follow along with my inline notes below. Gary wrote: I am trying to get this to work, however it only reads the second

Re: [PHP] elseif statements

2009-05-05 Thread tedd
At 1:11 PM -0400 5/5/09, Paul M Foster wrote: I hate to dogpile on Tedd, ... No problem. Some days you're the windshield and some days you're the bug. Hey, I've been wrong before -- I'm used to it. But in my defense, I've always had major problems understanding long ifelse's. You see, I'm d

Re: [PHP] elseif statements

2009-05-05 Thread tedd
At 12:48 PM -0400 5/5/09, Robert Cummings wrote: I'm not looking for gratification... merely hoping to ensure that readers of your niche style understand that it is niche, and that it is not really the best option of all available options. You are welcome to disagree, your opinion is your own, bu

Re: [PHP] elseif statements

2009-05-05 Thread Paul M Foster
On Tue, May 05, 2009 at 12:12:33PM -0400, tedd wrote: > At 11:29 AM -0400 5/5/09, Robert Cummings wrote: >> On Tue, 2009-05-05 at 11:21 -0400, tedd wrote: >> > At 10:13 AM -0400 5/5/09, Robert Cummings wrote: >> >> > >Just so we all know why... >>> >>> Yep -- just so we know why: >> > >>>

Re: [PHP] elseif statements

2009-05-05 Thread Tom Worster
On 5/5/09 9:49 AM, "tedd" wrote: > In my opinion, whenever your choices exceed two, use switch. ick! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] elseif statements

2009-05-05 Thread Robert Cummings
On Tue, 2009-05-05 at 12:12 -0400, tedd wrote: > At 11:29 AM -0400 5/5/09, Robert Cummings wrote: > >On Tue, 2009-05-05 at 11:21 -0400, tedd wrote: > > > At 10:13 AM -0400 5/5/09, Robert Cummings wrote: > > > > > >Just so we all know why... > >> > >> Yep -- just so we know why: > > > > >>

Re: [PHP] elseif statements

2009-05-05 Thread tedd
At 11:29 AM -0400 5/5/09, Robert Cummings wrote: On Tue, 2009-05-05 at 11:21 -0400, tedd wrote: > At 10:13 AM -0400 5/5/09, Robert Cummings wrote: > >Just so we all know why... Yep -- just so we know why: > > It all depends upon how you use the tools

Re: [PHP] elseif statements

2009-05-05 Thread Jan G.B.
2009/5/5 tedd : > At 10:13 AM -0400 5/5/09, Robert Cummings wrote: >> >> On Tue, 2009-05-05 at 10:05 -0400, Robert Cummings wrote: >>> >>>  On Tue, 2009-05-05 at 09:49 -0400, tedd wrote: >>>  > At 2:57 PM -0400 5/4/09, Gary wrote: >>>  > >I am trying to get this to work, however it only reads the s

Re: [PHP] elseif statements

2009-05-05 Thread Robert Cummings
On Tue, 2009-05-05 at 11:21 -0400, tedd wrote: > At 10:13 AM -0400 5/5/09, Robert Cummings wrote: > >On Tue, 2009-05-05 at 10:05 -0400, Robert Cummings wrote: > >> On Tue, 2009-05-05 at 09:49 -0400, tedd wrote: > >> > At 2:57 PM -0400 5/4/09, Gary wrote: > >> > >I am trying to get this to work,

Re: [PHP] elseif statements

2009-05-05 Thread tedd
At 10:13 AM -0400 5/5/09, Robert Cummings wrote: On Tue, 2009-05-05 at 10:05 -0400, Robert Cummings wrote: On Tue, 2009-05-05 at 09:49 -0400, tedd wrote: > At 2:57 PM -0400 5/4/09, Gary wrote: > >I am trying to get this to work, however it only reads the second if > >statement. I get no err

Re: [PHP] elseif statements

2009-05-05 Thread Robert Cummings
On Tue, 2009-05-05 at 10:05 -0400, Robert Cummings wrote: > On Tue, 2009-05-05 at 09:49 -0400, tedd wrote: > > At 2:57 PM -0400 5/4/09, Gary wrote: > > >I am trying to get this to work, however it only reads the second if > > >statement. I get no error messages, but as I change counties, the % sta

Re: [PHP] elseif statements

2009-05-05 Thread Robert Cummings
On Tue, 2009-05-05 at 09:49 -0400, tedd wrote: > At 2:57 PM -0400 5/4/09, Gary wrote: > >I am trying to get this to work, however it only reads the second if > >statement. I get no error messages, but as I change counties, the % stays > >the same. > > > >Can someone enlighten me, or should I be lo

Re: [PHP] elseif statements

2009-05-05 Thread tedd
At 2:57 PM -0400 5/4/09, Gary wrote: I am trying to get this to work, however it only reads the second if statement. I get no error messages, but as I change counties, the % stays the same. Can someone enlighten me, or should I be looking at switch statements? Thanks for your help. Gary In