Re: Re: phpmysql(which array function?)

From: Date: Sat, 08 Nov 2003 12:43:04 +0000
Subject: Re: Re: phpmysql(which array function?)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168947@lists.php.net to get a copy of this message
Joffrey Leevy wrote:
Please excuse the previous post. Table unformatted. Hi all: Trying to solve a phpmysql array problem. Let's say I have a table in mysql format Column1 Columnn2
dog       brown
 cat       white
 cat       black
 cat       mixed
 pig       black
 pig       brown
 
 What kind of (query, array function, loop, etc...) should I use to produce an html output like this:
 1. column1:dog
column2:brown 2. column1:cat
    column2: white, black,mixed
 3.  column1: pig
    column2: black, brown
 
SELECT * FROM thetable GROUP BY column1; That should work read > http://www.mysql.com/manual -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com ----------------------- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing."

« previous php.general (#168947) next »