You are here: Re: Complete newbie looking for a little help « PHP Programming Language « IT news, forums, messages
Re: Complete newbie looking for a little help

Posted by SterLo on 05/10/07 14:42

The best solution for this isn't a long conditional statement.

Do this - which is in my opinion the best way to handle most variables
that are being set dynamically.

$self = (isset($_GET["search"])) ? $_GET["search"] : NULL;

That statement can be read as:

The variable $self equals $_GET["search"] if it is set otherwise it is
equal to NULL.

 

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

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