I have a problem with my asp script that used to insert a data to postgreSQL database.This is the script :
[code=asp]
<%
Dim sConnection, objConn , objRS ,sql
sConnection ="DRIVER={postg reSQL};SERVER=l ocalhost;databa se=surya;UID=my UserID;PASSWORD =myPWD;port=543 2"
Set objConn = Server.CreateOb ject("ADODB.Con nection")
objConn.Open(sC onnection)
sql="insert into test(number,nam e) values('3','abc d')"
set objRS = objConn.execute (sql)
objRS.close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
%>
<html>
<body><a href="Laporan Pengaduan.asp"> Go</a></body></html>
[/code]
I've create the form that submit into this script and that script definitly right,but this script always CANNOT BE DISPLAYED.Surel y my database is working well, and i could insert the data straightly into postgreSQL.Some one please help me
[code=asp]
<%
Dim sConnection, objConn , objRS ,sql
sConnection ="DRIVER={postg reSQL};SERVER=l ocalhost;databa se=surya;UID=my UserID;PASSWORD =myPWD;port=543 2"
Set objConn = Server.CreateOb ject("ADODB.Con nection")
objConn.Open(sC onnection)
sql="insert into test(number,nam e) values('3','abc d')"
set objRS = objConn.execute (sql)
objRS.close
Set objRS = Nothing
objConn.Close
Set objConn = Nothing
%>
<html>
<body><a href="Laporan Pengaduan.asp"> Go</a></body></html>
[/code]
I've create the form that submit into this script and that script definitly right,but this script always CANNOT BE DISPLAYED.Surel y my database is working well, and i could insert the data straightly into postgreSQL.Some one please help me
Comment