|
Posted by totalstranger on 07/26/06 01:30
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("<a href=\"%s?id=%s\">%s %s</a> \n", $PHP_SELF,
> $myrow["id"], $myrow["name"], $myrow["rank"]);
>
> printf("<a href=\"%s?id=%s&delete=yes\">(DELETE)</a><br>",
> $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.
Navigation:
[Reply to this message]
|