Jump to content

[SOLVED] Need to output html <A> tags within MySql


giba

Recommended Posts

:o Well, I was trying to create a link within a block of text with a query of mysql, but no sucessfully!

 

When the query outputs the result (a text block) a link should be created in some words of this, something commonly done in a simple html page with the <a> tag [/color]

 

I get no idea of how doing this  when it comes from mysql.

 

Please, help me!

Link to comment
Share on other sites

GIBA REPLIES!

 

I've tried SELECT CONCAT but didn't work.

 

Let me explain my situation!

 

I got three columns in my database:

 

url (page.php)

content (the text)

comment (some explanation about the content)

 

I would like to have this query:

 

<a href="page.php">the text<//a>some explanation about the content

 

My code for the query sinde then works, but I can't do the html element 'A' become a real link.

'Cos when it outputs the query that's not a link, that's a readable html.

 

How do I first inform to mysql to parse this tags?

Then, how do I output this html tag like a link to users!

 

 

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.