Formatting my table on Smarty..

[email protected] ("Louie Miranda") Mon, 30 Oct 2006 12:01:01 +0800
Newsgroups php.smarty.general
Message-ID <[email protected]>
I want to format my table on smarty..
The data i currenltly have is..

12345678910
and with smarty and php

    while($viewFonts_01->fetchInto($_fetchmode1)) {
>         $_dataDS1[] = $_fetchmode1;
>     }
>     $viewFonts_01->free();
>     $font_front = $_dataDS1;
>     $smarty->assign('font_front', $font_front);
>

Displaying thru smarty..

{foreach from=$font_back item=entry}
> &raquo; <a href="dataentry.php
> ?font_front={$entry.0}&paperprintoption={$paperprintoption}&language={$language}&rpcSession={$rpcSession}">
> {$entry.2} ({$entry.3} only characters)
> </a><br>
> {/foreach}
>

As you can see, it only displays one straight vertical chunks of data..

How can i format on smarty to do this?

12345678910
I have my temp code which do this on plain PHP alone, but i dont know how to
make this work on smarty with two <td> sets...

$skip = 2;
> echo '<table border="1">';
> for ($i = 1; $i <= 10; $i += $skip) {
> echo '<tr>';
> echo '<td>' . $i . '</td>';
> echo '<td>' . ($i + 1) . '</td>';
> echo '</tr>';
> }
> echo '</table>';
>

Please help :(
-- 
Louie Miranda ([email protected])
http://www.axishift.com

//JSM-W