ASP and MySQL connectivity
Hi guys,
I am in a great trouble.
I am trying to establish a connection between MySQL and ASP file.
I have a webserver having database in MySQL
I have an asp file in which following code is written:
<%@ Language=VBScript
set con=Server.CreateObject("ADODB.Connection")
con.Open ("DRIVER={MySQL ODBC 3.51 Driver}; Server=localhost;Database=DB_admin;uid=UserN;pwd=password;")
Session.Timeout=1000
set rs=Server.CreateObject("ADODB.Recordset")
uid=trim(Request.Form("uid"))
pwd=trim(Request.Form("pwd"))
session("id")=""
if trim(uid)<>"" and trim(pwd)<>"" then
rs.Open "select * from login where id='" & trim(uid) & "' and password='" & trim(pwd) & "'",con
if not rs.EOF then
......
......
%>
But I am unable to establish the connection.
Please help.
Thanks.