ok so here is my problem, I have a database displaying all rows of users, when you click the id its suppose to load the next page (see code) with only that one user. the link looks ok (in the browser) but doesnt work for some reason.
page displaying all results with link:
session_register("id");
while($row = mysql_fetch_array($rs2)) {
// link in first td --> $list .= "<tr class=\"verysmallcopyblack\"><td><a href=\"edit_staff.php?id=$row[user_id]\">".$row["user_id"]."</a>"."</td><td>".$row["staff_name"]."</td><td>".$row["staff_surname"]."</td><td>".$row["staff_password"]."</td><td>".$row["email"]."</td><td>".$row["staff_group"]."</td><tr>";
}
$list .= "</table>";
......
resulted page with only one user information:
// displays the current user
$rs2 = mysql_select_db("media_tenor_staff",$conn);
$sql = "select * from media_tenor_staff where user_id = $id";
$rs2 = mysql_query($sql,$conn);
$list .= "<table border=\"1\" cellpadding=\"2\" width=\"100%\">";
while ($row = mysql_fetch_array($rs2)) {
$list .= "<tr><td>Name :</td><td>".$row["staff_name"]."</td></tr>";
.......
still pretty new to php, so im pretty sure there is an error with my code (syntax or other)
any help would be appreciated.