. tammikuuta 2002 10:18
To: php-db
Subject: [PHP-DB] Drop down list
I have two fields artist_id, artist. How do I put the contents of
artist into a dropdown list.
IncrediMail - Email has finally evolved - Click Here
--
PHP Database Mailing
- Original Message -
From: George Lioumis
To: B.J.Rumsey
Sent: Wednesday, January 30, 2002 11:47 AM
Subject: Re: [PHP-DB] Drop down list
Try the following:
?php
$option_block = ;
$get_list = select * from table_name;
$res = mysql_query($get_list) or die (mysql_error());
while
some tutorial about it.
Niklas
-Original Message-
From: George Lioumis [mailto:[EMAIL PROTECTED]]
Sent: 30. tammikuuta 2002 11:50
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Drop down list
I think you should be more polite with newbies. If you don't want to
help someone, just don't
Subject: RE: [PHP-DB] Drop down list
Well, true. :)
There is a but: I think it's stupid to try to get the solution from
others while the information is very easy to find by reading the manual.
This issue is about _very_ basic stuff. If you do not know how to loop
your query result, what in earth
[mailto:[EMAIL PROTECTED]]
Sent: 30. tammikuuta 2002 14:36
To: [EMAIL PROTECTED]; Php-DB
Subject: Re: [PHP-DB] Drop down list
OK. Someone else has already answered the question, so you could shut up
and stop teaching us all how to deal with newbies. This way you'll help
in a way
- Original
PROTECTED]]
Sent: Wednesday, January 30, 2002 8:48 AM
Cc: Php-DB
Subject: RE: [PHP-DB] Drop down list
First conect to DB
$result=mysql($DBname,SELECT * FROM table where 1);
$no=mysql_numrows($result);
$i=0;
$string=;
while ($i$no){
$string.=option
value=\.mysql($result,$i,$artist_id).\.mysql_result
// To: php-db
// Subject: [PHP-DB] drop down list
//
//
// I have two fields artist_id, artist. How do I put the
// contents of artist into a dropdown list.
//
//
// --
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, e-mail: [EMAIL PROTECTED]
// For additional commands, e-mail
I have two fields artist_id, artist. How do I put the contents of artist into a
dropdown list.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL