User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 391,596 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,679 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 4299 | Replies: 1
Reply
Join Date: Dec 2005
Posts: 7
Reputation: bennieblanco is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
bennieblanco bennieblanco is offline Offline
Newbie Poster

How to hyperlink mysql search results?

  #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, 17 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2004
Posts: 715
Reputation: Phaelax is on a distinguished road 
Rep Power: 6
Solved Threads: 28
Phaelax Phaelax is offline Offline
Master Poster

Re: How to hyperlink mysql search results?

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MySQL Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 11:32 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC