Svenson
08-26-2004, 09:56 PM
Hello,
Once again I am having problems that I think are probably simple formatting mistakes or something, but I need to get this job done before i can take the time to really learn the language, so I'm hoping someone can help me out.
OK, I think this is all of the relevant code:
The stuff for opening the connection I think works fine, so I won't paste all of that.
Dim Query_Sport
Dim Query_Sex
Query_Sport = Int(Request.QueryString("sport"))
Query_Sex = Int(Request.QueryString("sex"))
sql = "SELECT * FROM [Students] WHERE Sport1 = " & Query_Sport
sql = sql & " AND Sex = " & Query_Sex
Now, if I do a response.write, I can see the the querystring is 2, and there are definitely students whose sex = 2, but I get no return.
And if I query for males (sex=1), I get back only males.
Confusing :)
Let me know if you need to see more code.
Thanks a lot,
Brian Hill
Once again I am having problems that I think are probably simple formatting mistakes or something, but I need to get this job done before i can take the time to really learn the language, so I'm hoping someone can help me out.
OK, I think this is all of the relevant code:
The stuff for opening the connection I think works fine, so I won't paste all of that.
Dim Query_Sport
Dim Query_Sex
Query_Sport = Int(Request.QueryString("sport"))
Query_Sex = Int(Request.QueryString("sex"))
sql = "SELECT * FROM [Students] WHERE Sport1 = " & Query_Sport
sql = sql & " AND Sex = " & Query_Sex
Now, if I do a response.write, I can see the the querystring is 2, and there are definitely students whose sex = 2, but I get no return.
And if I query for males (sex=1), I get back only males.
Confusing :)
Let me know if you need to see more code.
Thanks a lot,
Brian Hill