Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
|
When you run your query make sure to select the 'id' field in addition to whatever else you want to grab. Your php to grab the row probably looks similar to:
Code:
$result = mysql_query("Your query here");
$row = mysql_fetch_row($result);
You can access the id as $row['id'] so maybe
$row_id = $row['id'];
and then use that value in building your URL. Based on your example it looks like you would already know everything other than the id so you might do something like:
$url = "http :// url-goes-here.com/page?=" . "$row_id";
The spaces in the above before and after :// are just to prevent the forum from turning it into an active link.
And by the way don't worry about asking too many questions. You're asking to learn and we're here to help if we can.
|