... what you need in your database (among other things) is:
link varchar (255)
linkname varchar (255)
and then:
INSERT INTO mylinks VALUES (
"http://www.phpbuilder.com", "PHP Builder"
);
and then use the line that Laserlight has shown you. From the code you posted, Philvia, it looks like you're wandering from HTML to PHP without initiating the PHP with the <?php ?> tags. Certainly the syntax wasn't going to work if what you posted was an echo statement.
Best of luck
Norman
PS: If you can be sure that the data in the DB has no extra spaces, fine. Otherwise, consider using trim() for the actual link to ensure that it works.