$db = new mysqli('localhost','root','','books');
if(mysqli_connect_errno())
{
echo "bir hata oluştu";
exit();
}
$query = "INSERT INTO books VALUES ('ISBN','AUTHOR','TITLE','45.45')";
$result = $db->query($query);
if($result) {
echo "eklendi";
} else {
echo "eklenemedi";
}
$db->close();