$query = $conn -> query("DELETE FROM table_name WHERE some_column = some_value"); if ($query){ echo "success"; }