I dont understand, so Im going to make up a question and then answer it.
"how do I make a table five elements wide dynamically ?"
echo "
<tr>
";
foreach( $db->select_array('', 'product', '') as $pos => $val )
{
if ( !(@$counter++ % 5) )
echo "
</tr><tr>
";
echo "
<td>{$val['product_name']}</td>
";
}
echo "
</tr>
";
there you go every five products you get a new line.
--
Chris Lee
[EMAIL PROTECTED]
"Alawi Albaity" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> how can i show my record to user to view it five
> record by fifve record by click link
>
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]