Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] echo > dropdown
- Date: Thu, 10 Feb 2005 00:31:10 +0900 (JST)
- From: Tod McQuillin <devin@example.com>
- Subject: Re: [tlug] echo > dropdown
- References: <87wty8bfm9.fsf@example.com> <000901c4a951$d7c7b0d0$6501a8c0@example.com><005501c4a9ec$9edf3220$7400a8c0@example.com> <20041004084910.GD2120@example.com><005c01c4a9f1$82655cf0$7400a8c0@example.com> <20050210002108.79d5da9e.qqw99xk9@example.com>
On Thu, 10 Feb 2005, Ahmed Sarwar wrote: > Hello, can someone please tell me how to put the following "echo" to > the "dropdown list". > > pg_connect("dbname=address host=localhost") or die("Couldn't Connect"); > $query = "SELECT * FROM address"; > $query = pg_query($query); > while($row = pg_fetch_array($query,NULL,PGSQL_ASSOC)) > { > echo "Name: ".$row['name']."<br />"; > } echo "<select name=\"address\">\n"; while($row = pg_fetch_array($query,NULL,PGSQL_ASSOC)) { echo "<option value=\"$row['key']\">$row['name']\n"; } echo "</select> Basically you just output HTML. -- Tod McQuillin
- Follow-Ups:
- Re: [tlug] echo > dropdown
- From: Ahmed Sarwar
- References:
- [tlug] echo > dropdown
- From: Ahmed Sarwar
Home | Main Index | Thread Index
- Prev by Date: [tlug] echo > dropdown
- Next by Date: Re: [tlug] echo > dropdown
- Previous by thread: [tlug] echo > dropdown
- Next by thread: Re: [tlug] echo > dropdown
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links