
February 24th, 2005, 07:33 PM
|
|
|
|
Join Date: Apr 2007
Location: Toledo,OH,43604
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
PHP to Html hand off
I am working on a keyword link list. In a MySQL database I have 2 fields keyword and link. Using PHP I can retrieve these no problem. What I am trying to do is use the keyword variable $word and $link as a hyperlink. In the code example below you will find several echo lines I use to verify results that are superfluous. I also realize the a href in no way will work it is included to explain my intentions.
php Code:
Original
- php Code |
|
|
|
<?php $location = "localhost"; $username = "myuserename"; $password = "somethingclever"; $database = "navigation"; $kword = $_POST['theword']; if (! $conn) die ("Could not connect MySQL"); $query = "SELECT * FROM keyword"; $word=$row[keyword]; } ?> <a href="$link">"$word"</a>
ANy help will be ENORMOUSLY appreciated
|