note 7285 deleted from pg_Fetch_Array by jmoore

From: Date: Fri, 18 Aug 2000 22:58:56 +0000
Subject: note 7285 deleted from pg_Fetch_Array by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-2534@lists.php.net to get a copy of this message
I have a little problem with your pg_fetch_array. Sometimes get this message : "Warning: Unable to jump to row 3 on PostgresSQL result index 2 in database.php on line 65". And sometimes the warning didn't appear. I just could fix it. My source program is : function Select_db ($db_nama,$syn_SQL,$n_field) { $hasil_qry=pg_exec($db_nama,$syn_SQL); $row=0; while($data=pg_fetch_array($hasil_qry,$row)): for($i=0;$i<$n_field;$i++) echo $data[$i]." "; echo "<br>"; $row++; endwhile; } Could anyone tell me what the problem ?

« previous php.notes (#2534) next »