Jump to content

links in query results


korbenmxli

Recommended Posts

new to PHP but make advances.... i display my table in a grid and all work fine... i have a field with  url adress or links to other pages in my site..... its possbible to display that field in my grid but like real hyperlinks?? i mean do click on it and go to the page?? i mean... like any other link ... let say ....

 

subject                description                                  more info

-----------------|---------------------------------------------|-------------------

WORD              calendar templates bla bla              templates here  <-- this field must be a link

 

tnx

Link to comment
Share on other sites

Are you actually displaying your table data to the public in an un-edited way like that? If so that is quite bad practice; especially if you have an incrementing unique index on the table (i.e. and ID field). Anyway.

 

You can display the field contents as real hyperlinks if they are stored as real hyperlinks in the database. So that field would contain for example:

 

<a href="/page/some-template" title="See Template">templates here</a>

 

That way when you show the table contents, the data will be interpreted as HTML and a hyperlink will be shown.

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.