Formatting my table on Smarty..

From: Date: Mon, 30 Oct 2006 04:01:01 +0000
Subject: Formatting my table on Smarty..
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13540@lists.php.net to get a copy of this message
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 (lmiranda@gmail.com) http://www.axishift.com //JSM-W

« previous php.smarty.general (#13540) next »