You are here: Re: Parse error: syntax error, unexpected T_ELSE « All PHP « IT news, forums, messages
Re: Parse error: syntax error, unexpected T_ELSE

Posted by Martin Jay on 09/28/25 11:48

In message <1148482876.965877.230630@g10g2000cwb.googlegroups.com>,
sloane.irwin@gmail.com writes
>Hi, I'm working on a computer inventory database at my federal
>work-study job and I've been able to find help so far with everything
>I've been doing, but this error message is really bugging me. Here's
>the code, the error is generated on line 41:

> if($i % 2); { //this means if there is a remainder
> echo "<TR bgcolor=\"yellow\">\n";
> } else { //if there isn't a remainder we will do the else
> echo "<TR bgcolor=\"white\">\n";
>}

The ';' after the 'if' is probably causing the problem. :)
--
Martin Jay

 

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

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