|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
whats went wrong ?
did i miss out anything?!?
Code:
strSQL = "Select Attempting FROM Attempts WHERE (studentID = '" & Session("StudID") & "') AND (Paper ='"& CT2004S1 &"')"
Select Attempting FROM Attempts WHERE (studentID = '024053J') AND (Paper ='') |
|
#2
|
||||
|
||||
|
Code:
strSQL = "Select Attempting FROM Attempts WHERE (studentID = '" & Session("StudID") & "') AND (Paper ="CT2004S1")"
__________________
-
thought-after | my thoughts on web development Get Firefox, the developers browser Budget hosting - recommended [/left] |
|
#3
|
|||
|
|||
|
Error Type:
Microsoft VBScript compilation (0x800A0401) Expected end of statement /ec2005/common/CommonTest/2004s1/performance.asp, |
|
#4
|
||||
|
||||
|
Oh please try and be a bit more helpful!!
What line is the error on? What code is on that line? |
|
#5
|
|||
|
|||
|
sorry, it was refering to the same code you provided!
kinda weird, it should be working... Code:
strSQL = "Select Attempting FROM Attempts WHERE (studentID = '" & Session("StudID") & "') AND (Paper ="CT2004S1")"
|
|
#6
|
||||
|
||||
|
So sorry, my bad. The quotes should be single quotes around the value:
Code:
strSQL = "Select Attempting FROM Attempts WHERE (studentID = '" & Session("StudID") & "') AND (Paper ='CT2004S1')"
|
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > whats went wrong ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|