php, apache web server, and hyperlink problem
Posted: Fri Nov 22, 2002 9:48 am
How does one access an outside website using an hyperlink?
Here is my code:
http//www.hotmail.com
I would get
http://127.0.0.1/http//www.hotmail.com
How does one link outside of the web server?
Here is my code:
When I run it, I get this:Code: Select all
<?php $conn = mysql_connect("localhost","",""); $query = "SELECT * FROM student"; $resultID = mysql_db_query("test_db", $query, $conn); for ($x = 0; $x < mysql_num_rows($resultID); $x++) { $row = mysql_fetch_assoc($resultID); print "<table><tr>"; print "<a href=" . $rowї'student_key'] . ">" . $rowї'student_class'] . " </a>"; print "</tr></table>"; } ?>
Look fine except the I wanted to try to link to a website on the internet. Instead of getting
freshman
sophmore
junior
senior
graduate
http//www.hotmail.com
I would get
http://127.0.0.1/http//www.hotmail.com
How does one link outside of the web server?