close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to make a URL in the search results work as a live link

Thread began 1/25/2010 7:57 pm by djogrady376174 | Last modified 1/26/2010 1:26 am by djogrady376174 | 568 views | 2 replies |

djogrady376174

How to make a URL in the search results work as a live link

I've created an advanced text search box on my site, which visitors will be able to use to search for articles that have been published on my site. So, when a visitor searches for articles that have been published on my site, the results page displays the URL for each of the resulting articles, where the visitor can find a published copy of the article on my site.

I am able to display the URL in the search results, but it's a non-working URL. Is there a way to make the URL a functioning (or "live") link to the page on my site where the article has been published?

Sign in to reply to this post

neilo

I think just surrounding it with link tags is all that would be needed:

<a href="<?php echo($row_YOURRecordset['column_url']); ?>"><?php echo($row_YOURRecordset['column_url']); ?></a>


If the article has a 'friendly' name, i.e. title, then the second php bit could contain that column name:

<a href="<?php echo($row_YOURRecordset['column_url']); ?>"><?php echo($row_YOURRecordset['column_title']); ?></a>
Sign in to reply to this post

djogrady376174

Making a "live" link in search results - thank you Neilo!

Neilo,

Thank you! It worked! I ESPECIALLY appreciate your suggestion about using the "friendly" name of the article in the second part of the PHP coding. That suggestion led me to make the article's title (which is in the first row in the results table) a live link. As a result, I don't have to show the actual URL in the results, and the results page is thus much cleaner and more professional looking.

Thanks again.

Dan

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...