
March 3rd, 2000, 10:41 PM
|
|
Junior Member
|
|
Join Date: Jan 2000
Location: WI, USA
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Trying to Have a hyperlink that will show the website address and be able to click on it and go directly to that site. I have tried several different methods and it keeps defaulting to my own URL any help would be greatly appreciated.
Sample from page...
$url = $row["Website"];
$site = $row["Company"];
$result = mysql_query ("SELECT * from table WHERE id=$id",$db);$row = mysql_fetch_array($result);
printf("%sn<br>", $row["company"]);
printf("%sn<br>", $row["Address"]);
Printf("%sn<br>", $row["City"]);
printf("%sn<br>", $row["State"]);
printf("%sn<br>", $row["PostalCode"]);
echo ("<a href='$url'>$site</a><br>n");
printf("<b>Specialization:</b> %sn<br>", $row["specialization"]);
Thanks
|