Everything works when you first visit the page, however when you leave the page and return there are errors that pop up only on the queries that contain math.
My question is how can I stop or silence these errors?
Here is one of the queries:
<?php
//Worst Regular Season Record
include_once('../other/functions.php');
$con = mysql_connect($hostname, $username, $password)
OR DIE ('Unable to connect to database! Please try again later.');
$db = mysql_select_db($dbname, $con);
$query = "SELECT win, loss, year, teamname FROM standings, owners WHERE owners.owner_id = standings.owner_id AND win = (SELECT MIN(win) FROM standings) AND standings.owner_id = $thing ORDER BY year";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
@ mysql_data_seek($result, 0);
if(mysql_num_rows($result)>0) {
echo "<table CELLPADDING=5 border =1>";
echo "<tr>";
echo "<th align=center colspan=4 > Worst Regular Season Record </th>";
echo "</tr>";
while ($row = mysql_fetch_array($result)) {
echo "<tr>";
echo '<td align=center> In '.$row['year'].', the '.$row['teamname'].' had '.$row['win'].' wins, and '.$row['loss'].' losses.</td>';
echo "</tr>";
}
} else {
}
echo "</table>";
mysql_close($con);
?>
Thanks for the help.