 <p>Another thing, make sure your connection is ok, reading <a href="http://docs.php.net/manual/pl/mysqli.construct.php" rel="nofollow">http://docs.php.net/manual/pl/mysqli.construct.php</a>,</p> <pre><code>mysqli_connect("localhost","root","","boats4u")or die(mysqli_error());; </code></pre> <p>will return an object anyway, so</p> <pre><code>or die(mysqli_error()); </code></pre> <p>won't execute because connect returns and object with ->connect_errno set</p>