WHERE id=".$id;
if ($conn->query($sql) === TRUE) {
echo "Record deleted successfully";
} else {
echo "Error deleting record: " . $conn->error;
}
$conn->close();
?>
connection.php
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "projectm";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
var_dump('eeeeeeeeee');
?
последнего символа на последней строчке не хватает?
Обсуждают сегодня