sorry i forgot to post my script:
Code:
<?php
$connection=mysql_connect ("localhost", "spike", "9sj7En4");
if (!$connection)
{
die  ('Could not Connect: '. mysql_error());
}
mysql_select_db ("My_DB", $connection) or die (mysql_error());
$result = mysql_query ("SELECT * FROM Expenses") or die (mysql_error());
echo "<table  border='2'>
<tr>
<th>Category</th>
<th>Date</th>
<th>Dollar Amount</th>
</tr>";
while ($row= mysql_fetch_array ($result))
{
echo  "<tr>";
echo  "<td>" .$row ['Category'] ."</td>" ;
echo  "<td>" .$row ['Date']  ."  </td>";
echo  "<td>" .$row ['Dollar Amount'] . "  </td>";
echo  "</tr>";
}
echo "</table>";
mysql_close ($connection);
?>

Last edited by shabbir; 1Mar2010 at 04:24.. Reason: Code blocks