Re: Query refuses to recurse all rows

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

 



> 		$numrows1 = pg_numrows($result1);
> 		$row = 0;
> 		do
> 		{
> 			$myrow = pg_fetch_array($result1, $row);	

<snip>

> 					$numrows2 = pg_numrows($result2);
> 					$row = 0;
> 					do
> 					{
> 						$myrow = pg_fetch_array($result2, $row);	

You're overwriting your variables.

$myrow from result 1 is being killed off when it gets into the $myrow
loop from result 2.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

-- 
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