Quote
<table>
<?
$count=0;
while( not until the last record) {
if ( $count==0 )
{
echo "<tr> <td>" ;
echo "Data"
$count++;
}
else {
echo "<td>"
echo "Data"
$count++;
}
if ( $count==4 ) {
echo "</td></tr>";
$count=0;
}
else echo "</td>"
}
?>
</table>
<?
$count=0;
while( not until the last record) {
if ( $count==0 )
{
echo "<tr> <td>" ;
echo "Data"
$count++;
}
else {
echo "<td>"
echo "Data"
$count++;
}
if ( $count==4 ) {
echo "</td></tr>";
$count=0;
}
else echo "</td>"
}
?>
</table>
This will show 4 records in each rows of table. (if $count = 4, I will create new row )
But I want to use Smarty to do that...? Is it possible?
Edited by kid304, 04 December 2009 - 06:13 AM.


Sign In
Create Account


Back to top









