You are here: Best Practice for layout items at one page « PHP Programming Language « IT news, forums, messages
Best Practice for layout items at one page

Posted by davihigh on 12/22/06 13:39

Hello all,

I am looking for a neat and best practice way to layout a number of
items (say, no more than 16 records) in one page, fill in a 4x4 grid.
The most clear way is using <table> to display HTML. But the number of
records is variable, so how i can program to render HTML code
correctly? For example, if we have 5 records, it should appear 4 items
at first row, and 1 item at second row. so on.
I am new to PHP and PHP template, so i wanna start from this point to
get more understand of PHP. I have also read book <Programming PHP> but
there is no obvious answer of this.

$result = mysql_query ("SELECT * FROM item", $connection);
........

Expecting your great reponse. Thanks!
Regards,
David

 

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

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