Hi again
I’ll explain what I want to do and if someone could point me in the right direction it would be most appreciated.
I have a member table in my mysql database with all the usual, username, name, date joined etc. What I’d like to do is create a member profile page that is reached by clicking on a member’s name.
I’m not sure how to make the clickable link of the member’s name a variable.
I think i’ve got the query for the information I want displayed sorted out but I’m at a bit of a loss. as to how to get that information to the page once a user clicks.
This is what I have so far for the query…
[php]
<?php include ("misc.inc"); $connection = mysql_connect($host,$user,$password) or die ("Couldn't connect to server."); $db = mysql_select_db($database, $connection) or die ("Couldn't select database."); $selected = /*this is where I'm stuck*/ $sql = "SELECT DISTINCT loginName FROM Member WHERE loginName='$selected'"; $result = mysql_query($sql) or die("Couldn't execute query 1."); while ($row = mysql_fetch_array($result)) { extract ($row); echo "{$row['loginName']}."; } ?>
[/php]
Could someone give me a rundown on the steps I need to take to achieve this? Once I have some idea of what I’m supposed to be doing, I’'m sure i’ll be able to figure it out.
I’m just not sure I’m going in the right direction.
Thanks again, NightOwl