Dynamic drop down list - please assist

Dynamic drop down list - please assist

am 26.07.2006 00:30:07 von JJ Mac

Ok i need some help with creating a dynamic drop down list. Or should i
say a list getting info from a mysql database. This is the part of the
code i now use to list out the things out of the database which i would
like to put in a list and have two buttons, one would be to edit the
item selected in the list(item would link to a whole file listing
everything stored in that row in the database and there for me to
edit), and another to delete that selection or i mean to delet the
whole row. If anybody could help me with this it would be great. Thnx
in advance.

$result = mysql_query("SELECT * FROM profile",$db);

while ($myrow = mysql_fetch_array($result)) {

printf(" \n", $PHP_SELF,
$myrow["id"], $myrow["name"], $myrow["rank"]);

printf("
",
$PHP_SELF, $myrow["id"]);

}

}

Re: Dynamic drop down list - please assist

am 26.07.2006 03:30:12 von totalstranger

On or about 7/25/2006 6:30 PM, it came to pass that JJ Mac wrote:
> Ok i need some help with creating a dynamic drop down list. Or should i
> say a list getting info from a mysql database. This is the part of the
> code i now use to list out the things out of the database which i would
> like to put in a list and have two buttons, one would be to edit the
> item selected in the list(item would link to a whole file listing
> everything stored in that row in the database and there for me to
> edit), and another to delete that selection or i mean to delet the
> whole row. If anybody could help me with this it would be great. Thnx
> in advance.
>
> $result = mysql_query("SELECT * FROM profile",$db);
>
> while ($myrow = mysql_fetch_array($result)) {
>
> printf(" \n", $PHP_SELF,
> $myrow["id"], $myrow["name"], $myrow["rank"]);
>
> printf("
",
> $PHP_SELF, $myrow["id"]);
>
> }
>
> }
>
Not sure I fully understand all of this but if it's for you own purposes
as an administrator, take a look at
http://www.phpmyadmin.net/home_page/index.php
If you have a web host snoop around it may already be there.