I'm trying to delete records from a MySQL database and everything says it was deleted but the actual record is unchanged. Here's my code can anyone tell me whats wrong with it?
Thanks
<?
$db_name = "firstcitymall_com";
$table_name = "business";
$connection = @mysql_connect("localhost", "database", "password") or die("Couldn't connect.");
$db = @mysql_select_db($db_name, $connection) or die("Couldn't select database.");
$sql = "DELETE $table_name WHERE id = '$id'";
$display_block = "
<br>
<h2 align=center><font color=\"#102942\">Record #$id Successfully Deleted</font></h2>
";
?>