• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hyperlinking

 
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
i am using mysql as database.
i am having a search page.which searches products from products table according to keyword.
the search lists items.
i wanna provide hyperlinks for results and when user clicks on that hyperlink a wanna display that perticular product details which is in another table.(now it's not listing as links)
how to achieve this?.anyone experienced plz share,
regards,
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
whenever you are ouputting your results, you basically just need to show the url. You just need to look at how you are going to do the url?
things you need to look at is using quereyString or hardcoding the product page.
Eric
 
Murasoli Maran
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But the output is from database.and my database(not done by me) did'nt contain URL field.it's listing data from table.
how to create a URL that'll bring me the desired page?.

i mean i wanna make results as hyperlinks.so by clicking hyperlink,the system should show the page(perticular product page).
how to achieve this?.i think it's a common problom.most sites having this feature.
anyone experienced ..plz,
regards,
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How is the product linked to the url
You need to make some sort of relationship between the two.
The database has no meaning if you can make sort sort of relationship.
I personnaly would do a query string with a lookup to get the information, but it sounds like you have all of the infomation hard coded into html.
Eric
 
Friends help you move. Good friends help you move bodies. This tiny ad will help:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic