Re: Pull a URL from MySQL and present it on a webpage
Posted by:
Bob Field
Date: February 04, 2006 07:55PM
$query = 'select url, label from urltable';
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result))
echo "<a href=$row['url']>$row['label']</a>";
Something like that?
Edited 1 time(s). Last edit at 02/05/2006 03:23PM by Bob Field.
Subject
Written By
Posted
February 04, 2006 06:11PM
Re: Pull a URL from MySQL and present it on a webpage
February 04, 2006 07:55PM
February 05, 2006 04:12PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.