<?php
function insert($name, $desc, $year, $category_id, $poser, $rating){
$mysqli = new mysqli('localhost', 'root', '', 'kinomonster');
if(mysqli_connect_errno()) {
printf("Соеднинение не установленно mysql", mysqli_connect_error());
exit();
}
$mysqli->mysql_set_charset(utf8, '$name', '$desc', '$category_id', '$poster', '$rating');
$query = "INSERT INTO movie VALUES(null)"
$result = false;
if ($mysqli->query($query)) {
$result true;
}
return $result;
}
?>