Vi leger at flg. felter er i "member_info" tabellen: "id", "member_name" og "member_age".
clan_members.php:
<?php
if(isset($_GET["member_info"])
{
$info_array = mysql_fetch_assoc(mysql_query("SELECT * FROM `member_info` WHERE `id`='".$_GET["id"]."'"));
printf("Member: %sAge: %d", $info_array["member_name"], $info_array["member_age"]);
}
else
{
$result = mysql_query("SELECT * FROM `member_info` ORDER BY `member_name` ASC");
while($members_array = mysql_fetch_assoc($members_result))
{
printf("<a href=\\"./clan_members.php?id=%d\\">%s</a>", $members_array["id"], $members_array["member_name"]);
}
}
?>
-
Mvh.
Christian Schultz Knudsen
[Redigeret d. 18/11-04 21:42:56 af Christian Schultz Knudsen]
[Redigeret d. 18/11-04 21:43:58 af Christian Schultz Knudsen]
[Redigeret d. 18/11-04 21:50:57 af Christian Schultz Knudsen]
Takker... Jeg er lidt n00b til det der ... hvordan får jeg det til at virke?
SkypeR That\\\\\\'s ME
----------------------------------------------
%49%66%20%79%6F%75%27%76%65%20%74%72%61%
6E%73%6C%61%74%65%64%20%
74%68%69%73%2C%20%79%6F%75%20%6D%75%73%
74%20%62%65%20%62% 6F%72%65%64%2E%2E%2E