quick question
Posted: Sun Jan 15, 2012 11:16 pm
i wrote this to display user posts on a news feed type page, how would i be able to display only users with something in the post row of my database?
<div class="container"> <?php $result = mysql_query("SELECT * FROM posting ORDER BY id"); //foreach(fetch_users() as $users){ //echo '{$users}'; echo "<table border='0'> <tr> <th>UserName</th> <th>Most Recent Post</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['usr'] . "</td>"; echo "<td>" . $row['post'] . "</td>"; echo "</tr>"; } echo "</table>"; ?> </div>