i created a simple script what i want is when it retrieves the link i want it to hyperlink to that page so some how fit a href in there some how i cant seem to figure out how to do it thanks <?php // Connects to your Database mysql_connect("localhost", "godofwar_xtra", "pcraider") or die(mysql_error()); mysql_select_db("godofwar_test") or die(mysql_error()); $data = mysql_query("SELECT * FROM movies") or die(mysql_error()); Print "<table border cellpadding=3>"; while($info = mysql_fetch_array( $data )) { Print "<tr>"; Print "<th>title:</th> <td>".$info['title'] . "</td> "; Print "<th>link:</th> <td>".$info['link'] . "</td> "; Print "<th>description:</th> <td>".$info['description'] . "</td></tr>"; } Print "</table>"; ?> Code (markup):
Replace Print "<th>link:</th> <td>".$info['link'] . "</td> "; Code (markup): with Print "<th>link:</th> <td><a href='".$info['link'] . "'>".$info['link'] . "</a></td> "; Code (markup):
Hi, Please take into consideration the type of URI along with the validation of the URI. Validation as in: - Does it contain an extension? - Does it contain the protocol? (http | https) - Is the URI a full path to a filename? If so - check to make sure that the characters within the file name of the URI are replaced with the specific character combos. Example: www domain com/File Name.html should be www domain com/File%20Name.html Just a word of advice. Hope it helps. ** Note I have had to replace the . [dots] within the URI examples with a space due to permission reasons at the moment.