Re: Weird query and display issue

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

 



Aaron Wolski wrote:
> The following code is displaying 3 results when it SHOULD only be
> displaying 1 result (I know it should be one because only one product
> was selected to be ordered).

Are you sure there aren't isn't than one result? What does
mysql_num_rows($result) return?

>                         $allrows[] = $cartResult;

This doesn't  make any sense to me...why are you doing this?  Then you are
iterating through it at the bottom.  So if there are 3 things printing,
there must be 3 things in this array...check your rows returned.

-- 
Matt King
magnet | internet
http://www.magnetinternet.com

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux