amir
12-02-2005, 08:48 PM
hi all
i m using a query
objrs1.Open "select * from course where username=" & studentid & "",objcon,1,2
where studentid is a variable having students usernames coming from database.
this query does not work for me, an error comes
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/login/login.asp, line 14, column 52
objrs1.Open "select * from course where (username=" studentid ")",objcon,1,2
i m using a query
objrs1.Open "select * from course where username=" & studentid & "",objcon,1,2
where studentid is a variable having students usernames coming from database.
this query does not work for me, an error comes
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/login/login.asp, line 14, column 52
objrs1.Open "select * from course where (username=" studentid ")",objcon,1,2