You are here: Re: sql query « PHP « IT news, forums, messages
Re: sql query

Posted by M. Sokolewicz on 03/02/05 14:06

! is a logical NOT operator. It simply turns true => false, and false =>
true.

So, what you have is:
$a = true;
if($a) {
echo 'true';
} else {
echo 'false';
}

if(!$a) {
echo 'false!';
} else {
echo 'true!';
}

In these 2 cases, it will echo
true and true!

More info can be found here:
http://www.php.net/manual/en/language.operators.logical.php

William Stokes wrote:
> Hello
>
> Can someone explain this to me. I don't know how to read this.
>
> if (!$variable = mysql_query("select id,sessid from users where ...
>
> What is this "if(!"
>
> I mean the ! sign.
>
> Thanks
>
> -Will

 

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

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