PHP linking dependant on mysql query?

Associate
Joined
1 Oct 2004
Posts
793
Location
Windsor
Is it possible for PHP to create a link dependant on what appears in a mysql query?

I have a search on my website which querys the database dependant on a search term and gives a result. e.g. a search result of cats creates a link which will take you to cats.html.

Currently I have this code in my search engine php:

Code:
echo '- <a href="xxxxxxx">'. $row['name'] . ' ' . $row['catagory'] .'</a>;

This makes whats displayed (name & catagory) a hyperlink but how do I make my link dependant on whats displayed in catagory so once clicked on it takes the user to that page?

Cheers guys.
 
Back
Top Bottom