I want to have hyperlinks using dynamic data pull from the database but no matter what I try I can only get the link to show up and it does not work. It is also listing the links side by side instead of in rows. Any help will be greatly appreciated.
<?php
ini_set ("display_startup_errors", "1");
ini_set ("display_errors", "1");
$dbh=mysql_connect ("localhost", "skreemn_carl", "") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("skreemn_2hm");
$Result = mysql_query("SELECT * FROM Regions",$dbh) or die(mysql_error());
mysql_select_db ("skreemn_2hm");
while($Row = mysql_fetch_array($Result))
{
$Reghotels = $Row['Reghotels'];
$Reg_id = $Row['Reg_id'];
$Region = $Row['Region'];
print $movie_details .=<<<EOD
<tr>
<td><a href='http://www.skreem.net/2hm/regionlist1.php?Reg_id=$Reg_id'Reghotels='This is a test'>$Region</td>
</td>
EOD;
}
mysql_close ($dbh);
?>
returns this
Antigua Antigua Mexico
as links then when the link is clicked it returns the same thing.