Hi, I'm trying to pass two variables via a url link and then to take the last variable to gather info from a mysql db.
MYSQL table name are hDetails which holds the id, name records and RATES table which holds the tid.
I want display all tid from RATES which is specific to the id from hDetails.
FRONTPAGE LINK :
(mysql table : hDetails)
$id
$name
(mysql table : RATES)
$tid
this is my link from the frontpage which collects the variables successfully and passes it to the details.php
<STRONG><a href="details.php?id=$id&tid=$tid></STRONG></FONT></DIV><DIV><STRONG><FONT color=#ff0000></FONT></STRONG> </DIV><DIV><FONT color=black>The result I get in the url goes like : details.php?id=1&7</FONT></DIV><DIV> </DIV><DIV>DETAILS.PHP/DIV><DIV> </DIV><DIV><FONT color=red>$result = mysql_query("SELECT id, name FROM hdetails WHERE id=" . $_GET["id"]);
the above will take the variable i passed from url and display the info for that id only. This works but the next bit :
$rack = mysql_query("SELECT tid FROM rates WHERE tid=" . $_GET["tid"]);
I can't seem to get the tid variable from the same url. Is what i'm doing correct or do I need to seperate them before calling them into the mysql query.
I then need to show this as follows.
<?php
while($details = mysql_fetch_array=($result)){
$id = $details["id"];
$name = $details["name"];
echo("<p>$id,$name</p>");
}
?>
and another section of the page to display the rates for that specific name as follows:
<?php
while($rates = mysql_fetch_array=($rack)){
$tid = $details["tid"];
echo("<p>$tid</p>");
}
?>
Each time I load the details.php page it loads the id and name successfully but throws an error for the tid.
Can anyone take a look and see where I'm going wrong.
white_spider77![]()


/DIV><DIV> </DIV><DIV><FONT color=red>$result = mysql_query("SELECT id, name FROM hdetails WHERE id=" . $_GET["id"]);


pen_window function to launch a window with a picture but reference to the php?id. or where I can find the script that will do the following.
Bookmarks