HI,
First off, this has nothing to do with the PHP include() function!
OK... I have a mysql database (currently on my WAMP webserver) which contains members' website and email addresses, so the contents of the 'website' field could be a string like:
http://www.starman.co.uk (not underlined in DB, just straight text, but the link keeps getting put in, even if I do 'remove link'!)
there is also a search page where members can search for other members, and query this DB. This all works perfectly.
I would really like to be able to display a member's website address as a clickable link, but can't get my head round the way to format it. At the moment, the web and email addresses are being properly returned from the DB query, but only as plain text.
Sure, savvy users can copy and paste this into the browser's address bar, but it would be really neat if the addresses could be formatted as clickable links.
Anyone have any suggestions how to do that?
Code is:
Code:
while ($row = mysql_fetch_assoc($result))
{
echo "<b>Club: </b>" .$row['club']. "<br>";
echo "<b>Venue: </b>". $row['venue']. "<br>";
echo "<b>Description: </b>". $row['description'];
echo "<br>";
echo "<b>Contact: </b>" .ucwords($row['fname']);
echo "<br>";
echo "<b>Telephone: </b>" .$row['landline'];
echo "<br>";
echo "<b>Mobile: </b>" .$row['mobile'];
echo "<br>";
echo "<b>Email: </b>" .$row['email'];
echo "<br>";
echo "<b>Website: </b>".$row['website'];
echo "<hr width=100%><br>";
}
And, as I say, this all works. No problem with the 'actual' coding, just how to render those last two rows from the DB as clickable links!