Forum Moderators: coopster
while($r2=mysql_fetch_array($result2))
{ $catdesc=$r2["catdesc"];
echo "<font face=Arial, Helvetica, sans-serif size=2>$catdesc <br>";
}
echo"<td valign=top align=left width=140><font face=Arial, Helvetica, sans-serif size=2><img src='$image' width='100'><br>";
echo "<a href='searchprojMI.php'>More project info</a></td>";
[/php]
This leads to another similar PHP page but it is not linked to the item the more info button relates to.
How do I link them?
Any advice much appreciated.
You need to get the info into a query string. Preferably the id of the article.
<a href='searchprojMI.php?id=ID HERE'>More project info</a>
Then on the searchprojMI.php page use $_GET to get the id and query the database.
$id = $_GET['id'];
$query = mysql_query("SELECT * FROM table WHERE id = '$id' LIMIT 1");
etc etc
dc