When I get relevant results from mysql and display them using php I want to give a link like "see full content" where the person can click to visit that url.

Is there an easy way to get the relevant url for the stuff which is gotten from the database then display it or whatever? I can think of putting the url in by hand for each row in the table then getting that but I'm pretty sure websites like daniweb which have 1000 + results per searched query don't handcode all those links in

There are two options. You can use the google search api which will allow you to use google web search on your website or alternatively you can do a very long mysql query with an algorithm you've devised to retrieve content from the database and display them as links on the page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.