<?php //connect to database require_once ('dbconnect.php'); $displayPosts = "select postID, postDate, postName, postTitle, postBody from pmf_discussion order by PostDate"; $rsAllPosts = mysql_query($displayPosts); echo "<table id=\"posts\" border=\"1\">\n"; while ($Post = mysql_fetch_array($rsAllPosts)){ $postID = $Post['postID']; $postDate = $Post['postDate']; $postName = $Post['postName']; $postTitle = $Post['postTitle']; $postBody = $Post['postBody']; echo "<tr> <td>$postName</td> <td>$postBody</td> </tr>"; } echo "</table>\n"; ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)