Blank MySQL error on shared hosting <p>I am doing a little bit of learning on mysql, php and the like. I'm using a shared hosting plan so am quite limited from a settings changes point of view. </p> <p>I am attempting to run a simple mysql select command through PHP, but all i get back is a blank error</p> <pre><code>&lt;?php $typeID = $_GET['tid']; //variables for the database server $server = "localhost"; $user = "codingma_rbstock"; $pwd = "M@nL%V{%RI+h"; $db = "codingma_rbstock"; //variables for the database fields $itemNo; $itemNm; $itemDesc; $buyPr; $sellPr; $quan; $dept; //database connection //create connection $conn = new mysqli($server, $user, $pwd, $db); //if the connection fails throw an error. if ($conn-&gt;connect_error){ die("Connection Failed: " . $conn-&gt;connect_error); } echo "Welcome to " . $typeID . "&lt;br&gt;"; $sql = "select ITEM_NAME from stock where ITEM_NO='00001'"; if ($conn-&gt;query($sql) === TRUE){ $res = $conn-&gt;query($sql); if ($res-&gt;num_rows &gt; 0){ echo "success"; } }else{ echo "Error: " .$sql . "&lt;br&gt;" . $conn-&gt;error; } echo $res; ?&gt; </code></pre> <p>I have checked and it seems to be connecting to the database fine (I changed a few account details to see if that threw a different error and it did).</p> <p>I am sure I am missing something completely obvious here! The below is the text output from the error;</p> <p>Error: select ITEM_NAME from stock where ITEM_NO='00001'</p> <p>Thanks for any help.</p>