How to hyperlink mysql search results?

Reply

Join Date: Dec 2005
Posts: 7
Reputation: bennieblanco is an unknown quantity at this point 
Solved Threads: 0
bennieblanco bennieblanco is offline Offline
Newbie Poster

How to hyperlink mysql search results?

 
0
  #1
Dec 2nd, 2005
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, 24 views)
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: How to hyperlink mysql search results?

 
0
  #2
Dec 7th, 2005
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC