|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I'm getting more and more strange errors on my website concerning connections. As for instance: PHP Code:
At line 63 I have the following code: PHP Code:
At first I recieved this error: PHP Code:
Also on my connection open line. Could somebody help me on this? Also any links on help to these errors are welcom. tHx |
|
#2
|
|||
|
|||
|
that's going to return a screwed up path for your dsn. will have // at the start. try just typing in the path... from the look of th ecode you know where the file lives, so there's no need to add unneeded code.
sConn = "Provider=Microsoft.Jet.OleDb.4.0; Data Source=/databases/drweirdoproductions.mdb" |
|
#3
|
|||
|
|||
|
Thx crazytrain81,
That error is away, but now I'm getting the second error back. The error: PHP Code:
This is my code.. Line 63 is the oConn.open PHP Code:
|
|
#4
|
|||
|
|||
|
Well, those errors mean the path to your DSN is wrong or the file isn't there. The other error means the driver is incorrect...
The formatting and string capitalization has to be correct, just like I put it in my previous post. |
|
#5
|
||||
|
||||
|
i don't see oConn get created anywhere?
set oConn = server.createobject("ADODB.connection") |
|
#6
|
|||
|
|||
|
Thx for the help guys,
seems the problem is at the side of my webhosting. I can use ASP but it is on a linux server. So I had to export my Access database to mySQL. In that case I had to use a DSN. I never worked before with MySQL so I'm a newbie on that. Is there anybody who has experience in that mather? How do I put my database online? How do I create a dsn on the site of the webserver? Any help or links on this mather are greatly appriciated. THX |
|
#7
|
||||
|
||||
|
Code wise, using mySQL is no different to using MS Access. (well, 95% of it anyway.) The only difference I noticed working w/ mySQL about a year ago is that it doesn't have sub-select functionality.
You don't have to use a DSN to access a DB. Simply use a DSN-less connection, or the OLDDB method - http://www.4guysfromrolla.com/webtech/063099-1.shtml. Both are faster than DSN's. Other than that, you shouldn't have any problems using mysql. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > ASP Errors on my page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|