Error while fetching the array
<p>I have the following code which is generating error while fetching the elements of the array </p>

<pre><code> $task = new task();
    $task-&gt;connect();
    $services = $task-&gt;viewTask_front_android($_GET['pno']); 
    print_r($services);
     while($info =  mysqli_fetch_assoc($services)) 
     { 
     Print "&lt;b&gt;Name:&lt;/b&gt; ".$info['starttime'] . " "; 

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

<p>from the print_r(services) iam getting </p>

<pre><code>Array ( [task_id] =&gt; 14 [user_id] =&gt; 123 [employee_id] =&gt; 456 [service_id] =&gt; 2 [starttime] =&gt; 2:00 AM [endtime] =&gt; 4:00 AM [servicename] =&gt; se a [servicedescription] =&gt; ddsdsd [employeename] =&gt; dsd [employeepicture] =&gt; pictures/noimage.gif [pic_path] =&gt; pictures/noimage.gif ) 
</code></pre>

<p>is there any problem with 
     while($info =  mysqli_fetch_assoc($services)) 
it is generating error <code>Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\proj\android\services.php on line 70</code></p>
