Column Value Blues
From: Heath (heathweaver_at_belgacom.net)
Date: 05/31/04
- Next message: Carramba: "Re: how to pass php sertch results to c++ program?"
- Previous message: Pedro Graca: "Re: Randomize ImageGalleries"
- Next in thread: Garp: "Re: Column Value Blues"
- Reply: Garp: "Re: Column Value Blues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 31 May 2004 18:05:38 +0200
Howdy,
I am really struggling with the basics here.
PHP/MySQL
I have a database with three columns:
ID, Name, Phone
I want to return all the unique items in Name.
My Query is
$result = mysql_query ( "SELECT Name FROM database")
Let's say there are 20 entries. I want to return all twenty entries with
a <br /> between them.
I have tried to use foreach and while with mysql_fetch_row & _array, but
I can't get it to work. Can anyone help?
- Next message: Carramba: "Re: how to pass php sertch results to c++ program?"
- Previous message: Pedro Graca: "Re: Randomize ImageGalleries"
- Next in thread: Garp: "Re: Column Value Blues"
- Reply: Garp: "Re: Column Value Blues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|