|
-
Jul 13th, 2003, 06:03 PM
#1
Thread Starter
New Member
ASP and SQL
Hey im trying to design a log in type page with an access database and im trying to put a variable into the SQL statement and its not letting me do it
dim mySQL
mySQL = "SELECT * FROM USERS WHERE USERNAME='" & Request.Form("username") & "'"
set recordCollection=connectionToDatabase.Execute(mySQL)
connectiontodatabase.
any help???
-
Jul 15th, 2003, 07:33 PM
#2
yay gay
it doesnt work that way! you have to first of all create a sqlconnection type and then if you want to use mssql create a sqlcommand and bind it to the sqlconnection thru the CreateCommand().
\m/  \m/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|