0) { // Prepare the SQL DELETE statements $delete_category_sql = "DELETE FROM contacts WHERE id = $id"; // Execute the SQL statements if (mysqli_query($conn, $delete_category_sql)) { echo ""; } else { echo ""; } } else { echo ""; } } else { echo ""; } // Close the database connection mysqli_close($conn); ?>