Topic:Dreamweaver MX - Searching multiple fields Remainpoint:0
   
PostTime:12/16/2008 8:31:11 AM FloorTop
Lv is 1
Avatar
Level:
1
Professional point:
48
Experience:
8
Thread:
292
Post:
962
Total online time:
8M
Joined date:
4/28/2007 11:08:00 PM
Last Visit:
12/17/2008 12:44:40 AM
Status:
Offline
Using Dreamweaver MX and ASP, I am trying to create form and results page in which the user can select multiple checkbox options, which are displayed accordingly on the resulting page. Don't know whether my SQL query is right, but here it is:
SELECT *
FROM Tools
WHERE Manufacturer LIKE '%var_manuBosch%' AND Manufacturer LIKE '%var_manuDeWalt%' AND Tool LIKE '%var_toolGrinder%' AND Tool LIKE '%var_toolScrewdriver%' AND Tool LIKE '%var_toolRecSaw%' AND Tool LIKE '%var_toolCircSaw%'

My default value for every variable is %

If I select more than one checkbox, this query returns no results.

Any advice? Thanks.
 
     
   
Gender PostTime:12/16/2008 11:44:18 PM Point:0 | Floor# 1
Lv is 1
portrait
Level:
1
Professional point:
10
Experience:
14
Thread:
278
Post:
973
Total online time:
14M
Joined date:
4/28/2007 11:18:00 PM
Last Visit:
12/17/2008 12:41:03 AM
Status:
Offline
Use OR instead of AND
 
     
1

Sorry, you are not login, click here to login

 

About us | Advertise | Contact us | Partner | Bug Report|Suggesting box|Donation
Home | Forum | Affiliate program| Remote help | Setting | Search | Document | Help | Download|Message

 

Start new topicAdvanced search
Your location: Web designer -> Dreamweaver