RE: Looping through a Db query result twice in PEAR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
Shouldn't it be;

$sql="Some query";
$result = $conn->query($sql);
//            VVVVV             VVVVVVV
while ($row = $conn->fetchArray($result)) {
	echo $row['hey'];
}
//             VVVVV             VVVVVVV
while ($row2 = $conn->fetchArray($result)) {
	echo $row2['otherhey'];
}

Warren Vail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux