Well if it is any help, here is the sort of thing I do.
This would be the list of links on the first page;
$query = mysql_query("SELECT * FROM mytable ORDER BY ID DESC LIMIT 10"); // this selects the last 10 entries in the table
while ($row = mysql_fetch_array($query, MYSQL_NUM))
{
print "<a href='adminbirdview.php?id=". $row[0] ."'>". $row[1] ."</a>"; // $row[0] is the ID and $row[1] is the description that appears as the text for the hyperlink
}
Now to get that specific row from the query on the next page use something like this;
$id= $_GET[id]; // this is the information that was passed by your previous page.
$query = mysql_query("SELECT * FROM mytable WHERE ID= '". $id ."'"); // this query will only return the row for the ID passed from the previous page.
while ($row = mysql_fetch_array($query, MYSQL_NUM))
{
print "Record Number - ". $row[0] ."<br>";
print "Description - ". $row[1] ."<br>";
print "Another Field - ". $row[2] ."<br>";
//and add as many field as you want
}
By adding HTML tags you can create the output in to a table like this
$id= $_GET[id]; // this is the information that was passed by your previous page.
$query = mysql_query("SELECT * FROM mytable WHERE ID= '". $id ."'"); // this query will only return the row for the ID passed from the previous page.
print "<table>";
while ($row = mysql_fetch_array($query, MYSQL_NUM))
{
print "<tr><td>Record Number</td><td>". $row[0] ."</td></tr>";
print "<tr><td>Description </td><td>". $row[1] ."</td></tr>";
print "<tr><td>Another Field</td><td>". $row[2] ."</td></tr>";
//and add as many field as you want
}
print "</table>";
Well that should do something for you anyway.....
Cheers,
Neil.