Jump to content

html clickable link in a table result


elentz

Recommended Posts

Sorry.  Was multitasking badly as I posted the original message

 

I have a CRUD application where we will be entering information into a DB for our customers.  We need a system where we can keep track of links for programming their phone systems.  All are online and programmed using a browser.  We are entering the url into a field in the form and later the url is brought out in a table showing all the different records for all the customers.  I am looking for a way to make the url clickable?  We have multiple people accessing this report.

Link to comment
Share on other sites

  • I have a CRUD application where we will be entering information into a DB for our customers.  Okay.

We need a system where we can keep track of links for programming their phone systems. A link programs a phone system?  You mean, you want to keep track of all the links they followed?  If so, include a session or cookie in the request or some data in the URL, and store that in the DB.

All are online and programmed using a browser.  All who?

We are entering the url into a field in the form and later the url is brought out in a table showing all the different records for all the customers.  Not sure on this one.  Are you looking to save the urls that were placed in the form in a DB?  Shouldn't be too difficult.

I am looking for a way to make the url clickable? As stated, use an anchor tag.

We have multiple people accessing this report.  And your point is?

Link to comment
Share on other sites

And what is "not pretty" about it? The fact that the link simply shows as "click here"? I can see that. But - when you retrieve the url that is being ref'ed, can you not also retrieve something more descriptive from that same source and use that as the display value of the anchor?

Link to comment
Share on other sites

<td><a href="http://<?php echo $row[2];?>">Click Here</a></td>

Not pretty but works.  Thanks for the nudge to figure it out.

 

What's wrong about that? It's a normal code to display links. Sure thing, you can always use templating system, so your code will look like:

<td><a href="http://{{ some_link }}">Click Here</a></td>

but if you are unfamiliar with PHP/HTML, you may find it very difficult to add templating engine to your script.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.