I am a PHP newbie, but I’m making progress. I have made a small mysql database and PHP form that I am using to populate a web page that shows the upcoming gigs for a musician. It shows the date, venue, etc. and works fine.
What I’m trying to add is this: I want to be able to store the web address of the venue in the database and then use that address as the href for and anchor tag that says VENUE INFO. I’ve called the column maplink and set it up like all my other variables. When I insert the web address in my form it gets recorded to my database as text “maplink” (no quotes) instead of the web address that I entered.
Also the HTML I’m trying to use is
<p><a href="<?php echo $maplink ?>">VENUE INFO</a></p>
which I’m sure is terribly wrong.
I’m using PHP 5.3.8 and MySQL 5.5.16. Any help on how to go about this?
During insert into the database, you may have forgotten to append $ symbol to maplink to make it a variable.