mysql_fetch_array() not spiting anything
<p>Here is my code:</p>

<pre><code>$campagin_id = $_SESSION['campagin_id_for_camp'];

$query = "SELECT * FROM survey_result where campagin_id = ".$campagin_id;

$conn=mysql_connect($dbconfig['db_hostname'],$dbconfig['db_username'],$dbconfig['db_password']) or die(mysql_error());

mysql_select_db($dbconfig['db_name'],$conn);

$exec_query =mysql_query($query) or die(mysql_error());

$row=mysql_fetch_array($exec_query);
echo "&lt;br&gt; row = ".$row;
while ($row=mysql_fetch_array($exec_query)){
    echo "I am In";

}
</code></pre>

<p>The Problem is that I am not getting anything in <code>$row</code> I cant get into the while loop, nothing shows up when I try to <code>echo</code> the value of <code>$row</code>, No error Nothing. Can you help me to find a problem in my code ?</p>

<p>Ps : The database is their. I have checked for the query for the corresponding value of <code>$campagin_id</code>. and also when i tried to echo <code>$exec_query</code> it echoed this : <strong>Resource id #8</strong><br>
<br>
PPS : The database have more than 7 record for each id so it doesn't matter if I call mysql_fetch_array($exec_query) more than once before going in to the while loop. and for the <code>$campagin_id</code> in the session their are many records present in the database.</p>
