$gametype=$_POST["gametype"];
$gamenumber=$_POST["gamenumber"];
$result1=mysql_query("DELETE FROM hockeystats_gs_headers WHERE gamenumber='$gamenumber' and gametype='$gametype'",$connection) or print mysql_error();
$result2=mysql_query("DELETE FROM hockeystats_gs_shots WHERE gamenumber='$gamenumber' and gametype='$gametype'",$connection) or print mysql_error();
$result3=mysql_query("DELETE FROM hockeystats_gs_roster WHERE gamenumber='$gamenumber' and gametype='$gametype'",$connection) or print mysql_error();
$result4=mysql_query("DELETE FROM hockeystats_gs_goals WHERE gamenumber='$gamenumber' and gametype='$gametype'",$connection) or print mysql_error();
$result5=mysql_query("DELETE FROM hockeystats_gs_penalties WHERE gamenumber='$gamenumber' and gametype='$gametype'",$connection) or print mysql_error();
if ($result5)
{
echo "<p class=\"bodymd\"><font face=Arial size=2>The gamesheet has been removed from the database.</font></p>";
}
else
{
echo "<p> <font face=Arial size=2><p class=\"bodylgbold\">Error Removing Player</p></font>";
}
I have this code and it won't delete the row from the table. Is there something wrong with it because if there is, I don't see it.
My error doesn't do anything. It seems to execute just fine (even when I had that if statement you told to include) however the row is still in my database after I executed it.