Re: how can i show my table 5 record by five record ?
| From: | Chris Lee | Date: | Tue, 18 Sep 2001 16:38:45 +0000 |
| Subject: | Re: how can i show my table 5 record by five record ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67721@lists.php.net to get a copy of this message | ||
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
lee@mediawaveonline.com
"Alawi Albaity" <phpcf@yahoo.com> wrote in message
news:20010917171311.34384.qmail@web20207.mail.yahoo.com...
> 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/