You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Resource id #1' at line 1
<?php $author = $_POST['author']; $title = $_POST['title']; $id = 0; $votes = 0; $sql = "INSERT INTO pool_top10(id, name, glosy) " . "VALUES ('$id', '$author' . '$title', '$votes')"; ?>