Re: Weird query and display issue

From: Date: Thu, 08 May 2003 03:51:47 +0000
Subject: Re: Weird query and display issue
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-27577@lists.php.net to get a copy of this message
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

« previous php.db (#27577) next »