954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to hyperlink mysql search results?

This is what I need
http://www.vital-ic.com/index.php?page=part&PHPSESSID=6b1baaeb7d9e4d26bdda4faa5265b7f6
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

Attachments search.zip (9.9KB)
bennieblanco
Newbie Poster
7 posts since Dec 2005
Reputation Points: 10
Solved Threads: 0
 

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 "".$part."";

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.

Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You