|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi,
I am trying to connect a asp page with MySQL and below is the code. The error i am getting is incorrect database name. But my database of order is in the location mentioned which as 3 files of frm, myd and myi. And the asp page is in the wwwroot folder. So i had to give this path to database. Please help me with this problem. Thanks, Jay ---------------------------------------------------------------------- <html> <body> <%@ Language=VBScript %> <% Dim my_conn, strSQL, rs Set my_conn = createobject("ADODB.Connection") my_conn.open = "DRIVER={MySQL ODBC 3.51 Driver};"_ & "SERVER=localhost;"_ & "DATABASE=C:\Program Files\mysql\data\order;"_ & "UID=root;"_ & "PWD=;" strSQL = "SELECT * FROM table" Set rs = conn.Execute(strSQL) Do while not rs.eof Response.Write "Name: " & rs("customers") & "<br>" rs.MoveNext loop my_conn.close Set my_conn = nothing 'obj variable released %> </body> </html> -------------------------------------------------------------------------- |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Help needed in connecting MySQL database to ASP page on Localhost |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|