Learning PHP and MySQL
Example 10-14 The new table template
<table border=1>
<tr><th>Title</th><th>Author</th><th>Pages</th></tr>
{section name=mysec loop=$users}
{strip}
<tr>
<td>{$users[mysec].title}</td>
<td>{$users[mysec].author}</td>
<td>{$users[mysec].pages}</td>
</tr>
{/strip}
{/section}
</table>
Example 10-14 outputs Figure 10-18.
Posted by on 08/18 at 12:07 PM
Next entry: Example 11-01 Displaying a number in binary format
Previous entry: Example 10-13 Using the template to display the table