You are here: Re: whats wrong with this statment? « PHP Language « IT news, forums, messages
Re: whats wrong with this statment?

Posted by Kimmo Laine on 05/27/05 10:36

--
Welcome to Usenet! Please leave tolerance, understanding
and intelligence at the door. They aren't welcome here.
eternal piste erection miuku gmail piste com
"Lee David" <affordable_turnkey_solutions@comcast.net> wrote in message
news:b-CdnZ3richeoAvfRVn-pg@comcast.com...
> Let's say $myrow[status] = "n". The if statement is true because it is
> not "u". Let's say it is "u". The if statement is true because it is not
> "n". Let's say it is "x". The if statement is true because it is not "n".
>
> I would do it this way :
> $status = strtolower($myrow[status])
> if (&status = "n" || & status = "u")

Did you mean
if ($status == "n" || $status == "u")

If-statements are fun.
if( '=' != '==' )
echo "monkeys don't fly out of my butt";
else
echo "monkeys fly out of my butt";

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация