I'm able to save to my DB if I save to a test table that only has one field. But I'm trying to save to another table that has multiple fields. I get some odd things happening.
1st-I get an error message saying that the variables clash or are outside of acceptable limits. According to the Access DB setup they are fine (not too long, correct type etc).
The ASPP (where I alternate SQLstr and SQLstr1 in the oRS.open line in order to test the testtable and the users table):
<% SQLstr="INSERT INTO users (user_name, email, password, postcode) VALUES ('"&create_name&"','"&create_email&"','"&create_password&"','"&create_postcode&"')"
SQLstr1="INSERT INTO testtable (testfield) VALUES ('"&create_name&"')"
set oRS = server.createobject("ADODB.recordset"
oRS.open SQLstr,"DSN=mydb"
%>
2nd-If I include a close ASP line I'm told that it is illegal to do so on a closed object. I open it but don't close it before this line. Why does the machine think the DB is already closed? It works if I remove the line but I'm not really happy doing that.
1st-I get an error message saying that the variables clash or are outside of acceptable limits. According to the Access DB setup they are fine (not too long, correct type etc).
The ASPP (where I alternate SQLstr and SQLstr1 in the oRS.open line in order to test the testtable and the users table):
<% SQLstr="INSERT INTO users (user_name, email, password, postcode) VALUES ('"&create_name&"','"&create_email&"','"&create_password&"','"&create_postcode&"')"
SQLstr1="INSERT INTO testtable (testfield) VALUES ('"&create_name&"')"
set oRS = server.createobject("ADODB.recordset"
oRS.open SQLstr,"DSN=mydb"
%>
2nd-If I include a close ASP line I'm told that it is illegal to do so on a closed object. I open it but don't close it before this line. Why does the machine think the DB is already closed? It works if I remove the line but I'm not really happy doing that.