PHP not be able to echo data
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7048618/php-not-be-able-to-echo-data">PHP not be able to echo data</a>  </p>
</blockquote>



<p>I'm trying to get data from database, and echo them on the page using their unique id.. below is my code</p>

<pre><code>&lt;?php

 session_start();

require_once('config.php');

    //create query statement
    $query = 'SELECT * FROM player_info';

    //make the query from db
    $myData = mysql_query($query, $conn)
    OR exit('Unable to select data from table');




    while($row = mysql_fetch_array($myData, MYSQL_ASSOC)){ 


                $playerID       = $row['id']; 
                $player_bio     = $row['player_bio']; 
                $achievements   = $row['player_achts'];


    }
</code></pre>

<p>?></p>

<p>and here is how i code for echo the data</p>

<pre><code>&lt;?php

                             if ($playerID == 1)
                             {
                                echo '&lt;p class="playerAchievesL"&gt;' . $achievements . '&lt;/p&gt;&lt;p class="playerInfoL"&gt;' . $player_bio . '&lt;/p&gt;';
                             }

                             ?&gt;
</code></pre>

<p>I don't get any error return from php, but the data does not display anything... help please ... thank you so much</p>
