Re: IF with multiple values for a variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, June 13, 2007 12:35 pm, Dan Shirah wrote:
> Okay, I know this has got to be easy but it's not working any way I
> try it.
>
> When a record is selected it opens up a new page.  My query will
> display the
> specific results based on the type of record selected.  There can be
> multiple values in each if.  However I am having a brain fart in my if
> statement assigning the multiple values.
>
> Here is my if statement:
>
>  if ($type == 'T','D','L' {

//this will work:
if ($type == 'T' || $type == 'D' || $type == 'L'){

>     $get_id.=" payment_request WHERE id = '$payment_id'";
>     }

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux