Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Hannes Magnusson
On Thu, 12 Aug 2004 10:04:00 -0700 [EMAIL PROTECTED] (Justin Patrin) wrote: > On Thu, 12 Aug 2004 09:20:44 -0400, Deepak Dhake > <[EMAIL PROTECTED]> wrote: > > $query4 = mysql_query("SELECT result FROM TBL_result WHERE survey_no=2"; > > while($row2 = mysql_fetch_array($query4)) { > > //print arr

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 09:20:44 -0400, Deepak Dhake <[EMAIL PROTECTED]> wrote: > $query4 = mysql_query("SELECT result FROM TBL_result WHERE survey_no=2"; > while($row2 = mysql_fetch_array($query4)) { > //print array > } > > this will print whole array. i just want to print a row at a time and it sh

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Jason Wong
On Thursday 12 August 2004 21:20, Deepak Dhake wrote: > $query4 = mysql_query("SELECT result FROM TBL_result WHERE survey_no=2"; > while($row2 = mysql_fetch_array($query4)) { > //print array > } > > this will print whole array. i just want to print a row at a time and it > should be in the loop b

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Deepak Dhake
$query4 = mysql_query("SELECT result FROM TBL_result WHERE survey_no=2"; while($row2 = mysql_fetch_array($query4)) { //print array } this will print whole array. i just want to print a row at a time and it should be in the loop because i am printing other things as well. can you tell me how to pr

Re: [PHP] problem with mysql_fetch_array

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 17:13:49 -0400, Deepak Dhake <[EMAIL PROTECTED]> wrote: > i am trying to print some values from a table with using > mysql_fetch_array in a loop but not able to get correct values. > it works fine for the loop i=0, prints all desired values but when it > bocomes i=1 and starts t

[PHP] problem with mysql_fetch_array

2004-08-11 Thread Deepak Dhake
i am trying to print some values from a table with using mysql_fetch_array in a loop but not able to get correct values. it works fine for the loop i=0, prints all desired values but when it bocomes i=1 and starts the loop again the result values gets reset and prints the same old values. for e