Reputation: 3
I am new to both mysql and php and i need help I am trying to display data from the databse and then display them in a php form. The data displayed should be in hyperlinks so that when the user clicks on it, it brings them to another page with more details. I have already managed to display the data from the database, how do i go about making the data as hyperlinks and connecting them to the next page?
thanks
Upvotes: 0
Views: 685
Reputation: 686
while( $row = mysql_fetch_assoc($mysql_resource) )
{
$link = $row['link'] //do whatever your calculation to create links.
$e =<<<A_TAG
<a href="{$link}" >A Link</a>
A_TAG;
echo $e;
echo "<br />";
}
Upvotes: 2