Ok I have this little bit of code.
<?php
$con = mysql_connect("localhost","dbusername","pass");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("dbname", $con);
$result = mysql_query("SELECT * FROM tb_comments");
while($row = mysql_fetch_array($result))
{
echo $row['sku'] . " " . $row['name'];
echo "<br />";
}
mysql_close($con);
?>
What I am trying to do with it is to make it pull a row from my database and when it returns it it is a link. The row is an sku number that I can add to the end of url and it will be a valid link.
As you can see above I attempted to do this by adding
echo "<a href=\"$row\">$row</a>";
but it did not work.
Any help would be appreciated. Thank you.