Re: [PHP] if variable is equal to 2 through 4

2002-02-06 Thread hugh danaher
try: if ($variable>=2 and $variable<=4) echo "hello"; - Original Message - From: "Erik Price" <[EMAIL PROTECTED]> To: "Jay Fitzgerald" <[EMAIL PROTECTED]> Cc: "PHP (E-mail)" <[EMAIL PROTECTED]> Sent: Wednesday, Februa

Re: [PHP] if variable is equal to 2 through 4

2002-02-06 Thread Erik Price
Also, it was excessive to cross-post to different lists, especially with this kind of question. It has nothing to do with MySQL. Cross-posting is really only relevant for certain kinds of important announcements, and even then probably aren't cool. Erik On Wednesday, February 6, 2002, at 0

Re: [PHP] if variable is equal to 2 through 4

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 04:10 PM, Jay Fitzgerald wrote: > i am currently using this code: > > if ($variable == 2) || ($variable == 3) || ($variable == 4) > { > echo "hello"; > } > > how would I write it if I wanted to say this: > > if $variable == 2 through 4 ??? if ($variable >= 2)

[PHP] if variable is equal to 2 through 4

2002-02-06 Thread Jay Fitzgerald
i am currently using this code: if ($variable == 2) || ($variable == 3) || ($variable == 4) { echo "hello"; } how would I write it if I wanted to say this: if $variable == 2 through 4 ??? Should you have any questions, comments or concerns, feel free to call me at 318-338-2034. Thank you f