Benim ingilizce o kadar iyi değil. Ben o son yazılan bir forumda yayınlanmıştır zaman tarihini göstermek istiyorum basicaly. Bu benim forum shema olduğunu:
`forum_id` int(11) NOT NULL auto_increment
`forum_name` varchar(255) NOT NULL
`forum_description` text NOT NULL
`forum_order` int(11) NOT NULL
`thread_id` int(11) NOT NULL auto_increment
`thread_title` varchar(255) NOT NULL
`thread_text` text NOT NULL
`thread_date` datetime NOT NULL
`forum_id` int(11) NOT NULL default '0'
`thread_author` int(11) NOT NULL
`comment_id` int(11) NOT NULL auto_increment
`comment_text` text NOT NULL
`comment_thread_id` int(11) NOT NULL default '0'
`comment_poster` int(11) NOT NULL default '0'
`comment_date` datetime NOT NULL
Forums.php
$query = mysql_query("SELECT * FROM forums ORDER BY forum_order ASC");
while ($row = mysql_fetch_assoc($query)) {
<h3>Forum: <?php echo $row['forum_name'] ?><h3>
<div>Desc: <?php echo $row['forum_description'] ?></div>
<div>Last post: <?php echo $??['comment_date'] ?></div>
<?php } ?>
How would I do to get the last comment date for all forum? Maybe add a field in threads table where i store the last comment date? Maybe better way? Don't know how to explein this any better.
Teşekkürler