Discuss Calling links from a database in the MySQL Help forum on Dev Shed. Calling links from a database MySQL Help forum discussing administration, SQL syntax, and other MySQL-related topics. MySQL is an open-source relational database management system (RDBMS).
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.
Posts: 560
Time spent in forums: 10 h 3 m 58 sec
Reputation Power: 28
Calling links from a database
Can anyone tell me how I links should be inputed into a MySQL database? Also, how do I call the link in a web page? I do not want the URL displayed, but want something like the example below done in HTML:
<a href="http://www.devshed.com/">Click here!</a>
Thanks!
mmarron79@home.com
__________________
Matt
Last edited by marron79 : July 18th, 2001 at 02:19 AM.
Posts: 1,516
Time spent in forums: < 1 sec
Reputation Power: 12
Quote:
Originally posted by Insane Sensei Just put the whole HTML tag in the database, so when you call it again, it comes out as an HTML tag, and will display a link to the user.
Yeah, sure, ruin your data, slap logical and presentational information into one big useless lump.
marron79: Don't listen to him, he's insane after all .
Repeat after me:
Separate information and it's presentation
Separate information and it's presentation
Separate information and it's presentation
Separate information and it's presentation
Separate information and it's presentation
Separate information and it's presentation
Location: You have moved into a dark place. It is pitch black. You are likely to be eaten by a grue.
Posts: 56
Time spent in forums: 1 h 7 m 47 sec
Reputation Power: 11
You could add link fields - one called "url" that's just the http://www.domain.com part, and then a "name" or "title" field that has the name for the link. Use an ID field, and you can just display urls from a mySQL call:
Posts: 7
Time spent in forums: 1 h 6 m 5 sec
Reputation Power: 0
I had the same question as the OP and came across this post. I thought to myself "can it really be that easy?" Tried it and, yes, it really is that easy.
Posts: 1
Time spent in forums: 6 m 32 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
I had the same question as the OP and came across this post. I thought to myself "can it really be that easy?" Tried it and, yes, it really is that easy.