You are here: Re: Please help me with my code « All PHP « IT news, forums, messages
Re: Please help me with my code

Posted by Andrew @ Rockface on 07/01/05 09:47

In news:An3xe.3392$iv3.2852@fe02.lga,
juunksppamcrrap@NOhotSPAMmail.com <juunksppamcrrap@NOhotSPAMmail.com> wrote:
> I've written the code below to perform the following:
>
> Create a table that has three cells for each row. Each cell has a
> graphic and a radio button. The first row works fine. It gets to the
> third cell and starts creating the next row. The second row, however,
> just keeps creating cell after cell after cell, never getting around
> to creating the third row.
>
> I have scoured this code for the reason, but I am obviously too close
> to the problem. Please help!

I had trouble reading all that badly formatted code but it looks like you've
got a bit of an infinite loop going on:

> } while ($graph_num > "0");

I think you're reducing your counter by 1 ($graph_num--;) but it never goes
down to zero.

Also, you've got a ';' instead of a '{'at the start of your while loop.

--
Andrew @ Rockface
np: Blind Willie Johnson - Rain Don't Fall On Me
www.rockface-records.co.uk

 

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

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