Hello i am trying to pull the hosted domains from my sql database i am able to pull them and see them I just cant get the links to Phrase properly the link to the working script is here http://www.a1khosting.com/test/index2.php
as you can see the links are not correct when clicking on them. the php script is here
<html><head><title>Hosted Domains</title></head><body>
<?php
DataBase Info Removed
if (!mysql_connect($db_host, $db_user, $db_pwd))
die("Can't connect to database");
if (!mysql_select_db($database))
die("Can't select database");
// sending query
$result = mysql_query("SELECT domain FROM {$table}");
if (!$result) {
die("Query to show fields from table failed");
}
$fields_num = mysql_num_fields($result);
echo "<h1>Hosted Sites</h1>";
echo "<table border='1'><tr>";
// printing table headers
for($i=0; $i<$fields_num; $i++)
{
$field = mysql_fetch_field($result);
echo "<td>Hosted Sites{$field->domain}</td>";
}
echo "</tr>\n";
// printing table rows
while($row = mysql_fetch_row($result))
{
echo "<tr>";
// $row is array... foreach( .. ) puts every element
// of $row to $cell variable
foreach($row as $cell)
echo "<td><a href=\"".$cell['$row']."\" target=\"_new\">$cell</a></td>";
echo "</tr>\n";
}
mysql_free_result($result);
?>
</body></html>