RE: [PHP] Comparing Data

From: Date: Wed, 14 Aug 2002 01:17:05 +0000
Subject: RE: [PHP] Comparing Data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112458@lists.php.net to get a copy of this message
> -----Original Message----- > From: Justin [mailto:brat_@earthlink.net] > Sent: Wednesday, 14 August 2002 10:52 AM > To: php-general@lists.php.net > Subject: [PHP] Comparing Data > > > Hello all, > > I've run into a problem and there has got to be a way to do this. > > I'm searching a mysql table and finding all rows that have the > same ID. I need to output that ID, but I only want it to print once. > > Any help would be greatly appreciated! > Justin > what about something like a simple select statement eg SELECT * FROM table where id = $ID; then do something like echo $ID echo $other values. blah blah blah blah with the echo in a loop so it gets all the values.. just a thought.. Cheers

« previous php.general (#112458) next »