944,035 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Unsolved
  • Views: 9389
  • MySQL RSS
Dec 2nd, 2005
0

How to hyperlink mysql search results?

Expand Post »
This is what I need
http://www.vital-ic.com/index.php?pa...da4faa5265b7f6
in the field enter xc2v
and click on the arrow image for search
once result comes back you will see part# links

If you click any of the links it will enter the part# in to a form field

How can I make mysq results in to a hyperlink and transfer them to the rfq form?

I atached files need

Thank you
Attached Files
File Type: zip search.zip (9.9 KB, 137 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bennieblanco is offline Offline
7 posts
since Dec 2005
Dec 7th, 2005
0

Re: How to hyperlink mysql search results?

This is more of a PHP question, or whichever language the website is being written in. I'll use PHP.

Assuming you already know how to do your database search and get results displayed, it's really quite simple. When you go to display the part name on building the page after the query, add the href tag to it. Each link goes to the same webpage afterwards, so:

$part = get next value from result set

echo "<a href=/"form.html?part=".$part."/">".$part."</a>";

Then from your form.html page, get the value of the part variable that we posted in the link and set that as the default value to the form's text.
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: Mysql Search results
Next Thread in MySQL Forum Timeline: image database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC