I am using IIS on Windows 7 Enterprise.
The following lines of code are an asp page with vbscript calling a MySQL database.
When running the asp page I get a very generic error message "An error occurred on the server when processing the URL. Please contact the system administrator."
Despite the error the database is updated.
Could anyone help please.
Thank you in advance.
The following lines of code are an asp page with vbscript calling a MySQL database.
Code:
<!--#INCLUDE file="header.asp"-->
<html>
<%
iRegion=request.querystring("fRegion")
response.write iRegion & "<br/>"
Set myConnection = Server.CreateObject("ADODB.Connection")
myConnection.ConnectionString = "driver={MySQL ODBC 5.3 Unicode};" & _
"server=localhost;" & _
"uid=myUser;" & _
"pwd=myPassword;" & _
"database=myDB;"
response.write myConnection.ConnectionString & "<br>"
myConnection.open "GenixSQL"
%>
<head>
<meta http-equiv="Content-Language" content="pt">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Testes de Inserção</title>
</head>
<body bgcolor="#000000" link="#66CCFF" vlink="#CC66FF" alink="#FFCC99" text="#66CCFF">
<!-- TEST -->
<h3 align="center">Insertion Test: MySQL56 Instance</h3><br>
<%
insRegion = "INSERT INTO TESTE (testeDS) VALUES ('" + iRegion + "')"
myConnection.Execute insRegion
response.write insRegion & "<br/>"
set myConnection = Nothing
myConnection.close
%>
<a href="index.htm">Home Page</a>
</body>
</html>
Despite the error the database is updated.
Could anyone help please.
Thank you in advance.
Comment