Не изменяется данные в таблице MySQL на SQL UPDATE/SET
https://vk.com/doc534601824_635777920
https://vk.com/doc534601824_635778215
https://vk.com/doc534601824_635778135
https://vk.com/doc534601824_635778050
<?php
$mysqli = new mysqli('localhost','root','','home');
if(mysqli_connect_errno()){
prinf("Ошибка при подключении к базе MySQL", mysqli_connect_error());
exit();
}
$mysqli->set_charset('utf8');
$music = $mysqli->query('SELECT * FROM music');
while($fullmusic = mysqli_fetch_assoc($music)){
echo $fullmusic['name']."<br>".$fullmusic['author']."<br>";
}
//$query = "INSERT INTO movie VALUES(null, 'Безумный Макс', 'Описание фильма безумный Макс', '2015', Now())";
//$mysqli->query($query);
//$query = "UPDATE movie SET year = 1990 WHERE id = 3";
//$mysqli->query($query);
//$music = "DELETE FROM music WHERE id = 1";
//$mysqli->query($music);
$query = "UPDATE music SET author = ЛАаы WHERE id = 1";
$mysqli->query($query);
$mysqli->close();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HomeWork</title>
</head>
<body>
<form action = "/" method = "POST">
<input type = "text" name="name" placeholder = "Название группы">
<input type = "text" name="author" placeholder = "Название композиции">
<input type = "submit" value = "отправить">
</form>
</body>
</html>