|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
Hi everyone, as the topic says, I'm having trouble figuring out why when I try to connect to a mysql database through a php script, I get an error message saying ~"Fatal error: there was an error loading php3_mysql.dll on line X" Now, before you tell me that I need to edit my php.ini file, I have already done that, every possible way including with and without spaces, trailing slash, no trailing slash, slashes going the other way, etc. The code I'm using to connect is a simple:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> $db = mysql_connect("localhost", "root"); as well as $db = mysql_real_connect("localhost", "root"); [/code] With mysqld running and logged in of course. I also tried to use a script I found at phpbuilder.com that manually loads the dll but it gives me a "device attached to the system is not functioning properly" error. Here's the code for that. <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre> <? // This script snippet is used because // MySQL drivers does not seem to load, // Therefore I use this included // All it does is load the MySQL DLL file // Jocke Selin (jocke@selincite.com) // 1999-10-29 // Version 1.0.0.alpha // Include it with this statement // require("myloader.php3"); // Note that if your page will use // HTTP header redirections, you // Have to comment out the first print // Statement (No output before header). // The DLL file name $MySQLModName = "php3_mysql.dll"; if (dl("$MySQLModName")) { Print("<!-- $MySQLModName Loaded! - MyLoader by Jocke Selin (jocke@selincite.com) -->"); } else { Print("Failed To Load $MySQLModName !!"); } ?> [/code] If anyone knows any other way to trouble shoot this please let me know, have been pulling my hair out for 2 days because of it. TIA, Justin |
|
#2
|
|||
|
|||
|
Just download php_3.0.14 and reinstall , I think everything would be OK after that.
I've met the same problem and solved it by that. |
|
#3
|
|||
|
|||
|
Yeah, I got it by using 3.0.11.
Thanks, Justin |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > php3_mysql.dll will _not_ load! "undefined function" error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|