You are here: How to perform conditional? « PHP Programming Language « IT news, forums, messages
How to perform conditional?

Posted by brett on 11/06/06 05:15

I'd like to check these two conditions:

if ((is_page() or ($category->cat_ID === $cat)){
do something
}

but keep getting an "unexpected {..." error. If I do this, it works
fine:

if ($category->cat_ID === $cat){
do something
}

I'm guessing the array access has something to do with it. Any
suggestions?

Thanks,
Brett

 

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

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