Problem with fetching array
<p>Hi my i am having problem with fetching array in the following example.though the result should return row from table but it is returning nothing.it is not entering the while($row=oci_fetch_array($r)) statement,means it's always returning flse,though it should return true..</p>

<p>

<pre><code>     $a=$_POST['textfield'];

         $arr=explode(" ",$a);
         $len=count($arr);
         for($i=0;$i&lt;$len;$i++)
         {
      $sql="select n from test where s='{$arr[i]}' ";
      $r=oci_parse($db,$sql);
      oci_execute($r);


      while($row=oci_fetch_array($r))
      {
            $e=$row['N'];
                    echo $e; 

      } 

         }
     oci_free_statement($result);
         oci_close($db);
</code></pre>

<p>?></p>
