<?php
$mysql = new mysqli('localhost', 'root', '', 'kinomonster');
if(mysqli_connect_errno()) {
printf("Соеднинение не установленно mysql", mysqli_connect_error());
exit();
}
$mysqli->mysql_set_charset('uft-8')
$query = $mysqli->query('SELECT * FROM movie');
while ($row =mysqli_fetch_assoc($query) ) {
echo $row['name'];
}
?>