Re: [PHP] Can I have If...Else inside a For Loop???

2001-10-20 Thread ~~~i LeoNid ~~
On Fri, 19 Oct 2001 21:46:29 -0700 impersonator of [EMAIL PROTECTED] (Brad Melendy) planted I saw in php.general: arrh! I don't think I can say much else. Thanks so much for pointing that out David. ;-) .Brad David Pearson [EMAIL PROTECTED] wrote in message

Re: [PHP] Can I have If...Else inside a For Loop???

2001-10-20 Thread Brad Melendy
H. dunno about that. It's returning the results I'd expect as it is now. If I pass a string with characters that don't match the IF's criteria, I'm getting the ELSE statement's results. Thanks though. Brad ~~~I Leonid ~~ [EMAIL PROTECTED] wrote in message

Re: [PHP] Can I have If...Else inside a For Loop???

2001-10-20 Thread Brad Melendy
Oops, I spoke too soon. I wasn't getting the results I thought I was until I used == instead of = at the very end of my IF statement. Thanks very much for pointing that out. Brad Brad Melendy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... H. dunno

RE: [PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread David Pearson
Could it be the semi colon at the end of the 'if' line, at '... $nChar = 45); { ...' ? Looks like the if statement ends there, the ' { print OK.; } ' is a block on it's own and the 'else' is now out of context. -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread Brad Melendy
arrh! I don't think I can say much else. Thanks so much for pointing that out David. ;-) .Brad David Pearson [EMAIL PROTECTED] wrote in message 003101c1591a$e00ec290$320110ac@david">news:003101c1591a$e00ec290$320110ac@david... Could it be the semi colon at the end