Cannot fetch results from mysql
<p>I was about to create a high score system for my runescape private server. This is my php file: </p>

<pre><code>&lt;?php
    include "mysql.php";
    $playername = $_GET["player"];

    $query = mysql_query("SELECT * FROM skills WHERE playerName = '".$playername."'");
    $query2 = mysql_query("SELECT * FROM skillsoverall WHERE playerName = '".$playername."'");

    while($row = mysql_fetch_array($query)){
        echo($row['playerName']);
        echo(" " . $row['Attacklvl']);
        echo(" " . $row['Strengthlvl']);
        echo(" " . $row['Defencelvl']);
        echo(" " . $row['Rangelvl']);
        echo(" " . $row['Prayerlvl']);
        echo(" " . $row['Magiclvl']);
        echo(" " . $row['Runecraftlvl']);
        echo(" " . $row['Constructionlvl']);
        echo(" " . $row['Dungeoneeringlvl']);
        echo(" " . $row['Hitpointslvl']);
        echo(" " . $row['Agilitylvl']);
        echo(" " . $row['Herblorelvl']);
        echo(" " . $row['Thievinglvl']);
        echo(" " . $row['Craftinglvl']);
        echo(" " . $row['Fletchinglvl']);
        echo(" " . $row['Slayerlvl']);
        echo(" " . $row['Hunterlvl']);
        echo(" " . $row['Mininglvl']);
        echo(" " . $row['Smithinglvl']);
        echo(" " . $row['Fishinglvl']);
        echo(" " . $row['Cookinglvl']);
        echo(" " . $row['Firemakinglvl']);
        echo(" " . $row['Woodcuttinglvl']);
        echo(" " . $row['Farminglvl']);
        echo(" " . $row['Summoninglvl']);
    }
    while($row = mysql_fetch_array($query2)){
        echo(" " . $row['Totallvl']);
    }
?&gt;`
</code></pre>

<p>I get 2 errors with this code. They are: </p>

<pre><code>Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /disk3/daniel/public_html/client/test.phpon line 8

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /disk3/daniel/public_html/client/test.php on line 36`
</code></pre>

<p>Could anyone please help me with this?</p>
