Hi All,
I am have trouble getting $address to print the URL that is in the db.
<td class=\"dtd\"><a href=\"$address\" target=\"_blank\">%s</a></td> is printing the url with the word address instead of the real address.

The code is below.

$sql ="SELECT * FROM links ORDER BY owner";
$sql_result = mysql_query($sql, $conn) or die ("couldn't Connect");

while ($myrow = mysql_fetch_array($sql_result)){
$address = 'address';
echo "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" class=\"dtd\">\n";
<td class=\"tlt\">Name</td>
<td class=\"tlt\">Creator</td>
<td class=\"tlt\">Category</td>
do {
<td class=\"dtd\"><a href=\"$address\" target=\"_blank\">%s</a></td>
<td class=\"dtd\">%s</td>
<td class=\"dtd\">%s</td>
}while ($myrow = mysql_fetch_array($sql_result));

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to