This is a discussion on "hyperlinking PHP/SQL search results" within the PHP Forum section. This forum, and the thread "hyperlinking PHP/SQL search results are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
hyperlinking PHP/SQL search results
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
hyperlinking PHP/SQL search results
Heyyyyy all
haha under the advice of the wise Monie I have switched to creating in php/SQL over ASP/Access and what wise move that was. Okay heres my problem. I have produced an ecommerce website and have created catergory pages for my products. The list of products and thier attribuets are also displayed. for example see this website. It shows all the products under 'Amino Acid' http://www.discount-supplements.co.u...pplements&t=lb So far so good this is what I have achieved. However, now I would like to make my results or at least the name of the product a link to thier own indavidual webpages. I have created the indavidual webpages so now it is just a case of making the results hyperlinkable. |
|
|
|
|||
|
Re: hyperlinking PHP/SQL search results
All the categories seem to link ok in ff.
|
|
|||
|
Re: hyperlinking PHP/SQL search results
Hi Dab
that website is mine mate, i just used it as an exaple of all the products being displayed in the Amino Acid category and then the results being hyperlinked to thier indavidual pages. The hyperlinking of data pulled from my SAL database is the part I dont know how to do P.S your wifes site can be distracting hahaha |
|
|||
|
Re: hyperlinking PHP/SQL search results
Are you using Mysql db. If so you may have to create a field in your products called hyper_link or something. Then make sure its referenced in your search results. eg.
|
|
|||
|
Re: hyperlinking PHP/SQL search results
Quote:
Hi Dab thanks for your reply. I think I understand what you mean. I am usuing MySQL in SQLyog and PHP. So from what you mean I would make the lets say the data in 'Product_Name' hyperlinkable. |
|
|||
|
Re: hyperlinking PHP/SQL search results
|
|
|||
|
Re: hyperlinking PHP/SQL search results
Quote:
it does make sense. I am just trying to picture the output. So on the website next to all the products details there would be a 'http://www' link. Example Fiest : Ford : 2 seater : £15.000 : www.fordfiestapage.com Although this would sove the problem I wouldnt like a full link on the end is there away i can disguise it into just a word say 'view details' |
|
|||
|
Re: hyperlinking PHP/SQL search results
No, by using the code I posted or something similar the link would be attached to your product name, so when the user clicked your product name it would link to the hyper_link set in the database for that product.
A working example is on my wifes site, if you enter baby in the search field and look at the results I have hyperlinked the image using this process. I'm not great at explaining things. Pat |
|
|||
|
Re: hyperlinking PHP/SQL search results
Quote:
|
|
|||
|
Re: hyperlinking PHP/SQL search results
Quote:
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Search results like these (link) | skuliaxe | PHP Forum | 4 | Jan 28th, 2008 11:28 |
| [SOLVED] Displaying search results on a different page | longstand | PHP Forum | 4 | Nov 19th, 2007 22:26 |
| search results with servlet or JSP | twix_ | Other Programming Languages | 1 | Nov 2nd, 2006 21:25 |
| Index Server search results problem | starrbuck | Classic ASP | 0 | Feb 22nd, 2006 17:20 |