Page 1 of 1

hyperlinks in a database

Posted: Fri Dec 12, 2003 6:39 am
by malcolmboston

Code: Select all

print "cant find anything on this subject";
hiya guys was just wondering how it is possible to make a links appear (properly in a page when extracting from MySQL

i have an idea for my site special members area, where they have the ability to 'add the favourite sites' so they just click a link and its there, was not sure if you could just put the HTML code in MySQL and it would work that way or creating 2 seperate columns and kind of merging them together

im sure this is done often

Any Help?

Posted: Fri Dec 12, 2003 8:33 am
by Saethyr
I do a database pull then do something along the lines of...

Code: Select all

<?php
$foo = $row["linkname"];

echo "<a href="$foo">$foo</a>";
?>

Seems to work pretty well for what I have needed so far, but then again I don't care about things like speed... ;)


Saethyr