Thanks for the response...i'm on the right track in terms of looping. This is what my code looks like, but it doesn't show any of my information from the database (please note that the SQL connection statement and the opening PHP tag was cut out, cuz they're irrelevant)
$sql = "SELECT * FROM showtest ORDER BY id desc";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
/* check for an error with the query */
if (!$result)
{
/* if there is a problem with the query - tell me and display
any error messages given then stop the program
gracefully */
echo 'Error with the query. Message returned: ' .
mysql_error();
die;
}
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr>
<th>Date</th>
<th>Cost</th>
<th>Venu</th>
<th>Address</th>
</tr>";
/* begin loop */
$i=0;
while ($i < $num) {
/* define variables */
$variable1=mysql_result($result,$i,'showdate');
$variable2=mysql_result($result,$i,'showcost');
$variable3=mysql_result($result,$i,'showvenu');
$variable4=mysql_result($result,$i,'showaddress');
echo "<td> $variable1 </td>
<td> $variable2 </td>
<td> $variable3 </td>
<td> $variable4 </td>";
$i++;
}
echo "</table>";
?>