Исправить ошибку: query("set names 'utf8'"); } function getallarticles() { global $mysqli; connectdb(); $result_set = $mysqli-> query("select * from `articles`"); closedb(); return resultsettoarray($result_set); } function getallguestbookcomments() { global $mysqli; connectdb(); $result_set = $mysqli-> query("select * from `guestbook`"); closedb(); return resultsettoarray($result_set); } function addguestbookcomment($name, $comment) { global $mysqli; connectdb(); $success = $mysiqli-> query("insert into `guestbook` (`name`, `comment`) values ('$name', '$comment')"); closedb(); return $success; } function getarticle($id) { global $mysqli; connectdb(); $result_set = $mysqli-> query("select * from `articles` where `id`='$id'"); closedb(); return $result_set-> fetch_assoc(); } function resultsettoarray($result_set) { $array = array(); while (($row = $result_set-> ! = false) $array[] = $row; return $array; } function closedb() { global $mysqli; $mysqli-> close(); }? >