<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "mojaDB";
$conn = new
mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error)
{
die("Neuspesna
konekcija: " . $conn->connect_error);
}
$sql =
"DELETE FROM Ucenici
WHERE id=1";
if ($conn->query($sql)
=== TRUE) {
echo
"Slogot uspesno
izbrisan od tabelata Ucenici ";
} else {
echo
"Greska vo brisenje na
podatok od tabela: " . $conn->error;
}
$conn->close();
?>