I have a datagrid that has the name of the user and a few pieces
of their data displaying (currently working correctly).
Within this datagrid, I made the users name a link so you can select it, a pop-up appears with all
their data (currently somewhat working correctly).
The problem is, no matter what name you select you get the user data from the last entry in the sql db rather then the name you selected.
I am guessing I need to pass along the variable ('fb_name') of the selected link name from the datagrid to the pop-up?
<?php //THIS IS JUST THE POP-UP CODE
$sql = "SELECT fb_friends_count, fb_name, fb_count, fb_last_post, fb_likes, current_value, fb_likes_pop, fb_status, fb_pic, rank FROM fb_data17";
$result = mysql_query($sql) or die(mysql_error());
while ($row = mysql_fetch_array($result))
$fb_friends_count = $row["fb_friends_count"];
$fb_name = $row["fb_name"];
$fb_count = $row["fb_count"];
$fb_last_post = $row["fb_last_post"];
$fb_likes = $row["fb_likes"];
$current_value = $row["current_value"];
$fb_likes_pop = $row["fb_likes_pop"];
$fb_status = $row["fb_status"];
$fb_pic = $row["fb_pic"];
$rank = $row["rank"];
<?php //THIS IS THE LINE OF CODE THAT CALLS THE POP-UP FILE