If anyone has any ideas on how to help me out with this, when I run it usually just creates a never ending table.
<?php
$link = mysql_connect('localhost', 'blah', 'blah') or die('Could not connect: ' . mysql_error());
mysql_select_db('blah') or die('Could not select database');
extract($_GET);
error_reporting(error_reporting() & ~E_NOTICE );
$query = "SELECT `city`.`month`,`city`.`cost`, `comcast`.`cost`, `electric`.`cost`, `city`.`cost` + `comcast`.`cost` + `electric`.`cost` AS \"Total\" FROM `city`, `comcast`, `electric`";
echo "<table border = '1'>
<tr>
<th>Date of Bills</th>
<th>City Bills</th>
<th>Comcast Bills</th>
<th>Electric Bills</th>
<th>Total Bills</th>
</tr>";
$dave= mysql_query($query) or die(mysql_error());
while ($row = mysql_fetch_array($dave,mysql_ASSOC)) {
echo "<tr>";
echo "<td>" . $row[`city`.`month`] . "</td>";
echo "<td>" . $row[`city`.`cost`] . "</td>";
echo "<td>" . $row[`comcast`.`cost`] . "</td>";
echo "<td>" . $row[`electric`.`cost`] . "</td>";
echo "<td>" . $row[`\"Total\"`] . "</td>";
echo "</tr>";
}
//SELECT `city`.`month`, `city`.`cost`+ `comcast`.`cost`+ `electric`.`cost` AS "Total" FROM `city`, `comcast`, `electric`
// Free resultset
mysql_free_result($result);
// Closing connection
mysql_close($link);
?>