Learning PHP and MySQL
Wednesday, September 27, 2006
Example 16-11 The posts.tpl template file defines how the postings appear on the page
{section name=mysec loop=$posts}
<a href="view_post.php?post_id={$posts[mysec].post_id}">{$posts[mysec].title}</a>
by <b>{$posts[mysec].first_name} {$posts[mysec].last_name}</b>
from the <b>{$posts[mysec].category}</b> category at <b>{$posts[mysec].posted}</b>.
<br />
{/section}
<br />
Click to <a href="modify_post.php?action=add">add</a> a posting.<br />
Posted by krautgrrl on 09/27 at 11:45 AM
Chapter 16 Code • (0) Comments • (126) Trackbacks • Permalink
Chapter 16 Code • (0) Comments • (126) Trackbacks • Permalink
Statistics
This page has been viewed 279807 times
Page rendered in 0.1526 seconds
Total Entries: 224
Total Comments: 16
Total Trackbacks: 307338
Most Recent Entry: 09/27/2006 12:39 pm
Most Recent Comment on: 10/26/2007 10:00 am
Total Members: 2
Total Logged in members: 0
Total guests: 10
Total anonymous users: 0
Most Recent Visitor on: 09/09/2010 03:16 pm
The most visitors ever was 1103 on 11/20/2007 12:50 pm
