SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 10th, 2003, 12:20 PM
eel_22 eel_22 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 2 eel_22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Drop down menus

I have a search page which allows the user to search through arrays sent with the page using drop down menus. Javascript is used for this part. The user sarches by Flow Cv, orifice Size and Port Connection. <br><br>I have an MS Access database which has fields Flow_cv, Orifice_size and port_connection, Speciication, price etc. <br><br>On my search page I have a form to use the drop-down menus then submit <br><br><br>I have been trying to get the sql working on the asp page which the form submits to but cant seem to get it working. I have been trying the following but with no success. <br><br>SQL_query = "SELECT * FROM products WHERE Flow_Cv = '" & Request.Form("firstChoice") & "' AND Orifice_size = '" & Request.Form("secondChoice") & "' AND Port_Connection = '" & Request.Form("thirdChoice") & "'"<br><br>i want it to take the information the user has selected from the drop-down menus. i.e Flow Cv, orifice size and port connection. I want the query search the DB and find the products which match the selections and return all the details held on it. <br><br>I have the page loading but the sql doesnt seem to be querying the DB.<br><br>Any advice would be appreciated, <br><br>Regards <br>Andy

Reply With Quote
  #2  
Old February 16th, 2003, 07:32 AM
JGWood JGWood is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 8 JGWood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
First, if you have not already, insert Response.Write(SQL_query) on your page to display sql statement on page. <br><br>Next you might need to take a look at how you are handeling nulls. (unless all of your fiels have values) Do you have default values for your form fields? If you are searching for a null value, it will try to match those values.<p> </p><p><hr size="1" width="50%" align="left" />James Wood<br>jgwood@dot.state.az.us</p>

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Drop down menus


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT