MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old January 8th, 2000, 12:22 AM
Justin Justin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 3 Justin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old January 18th, 2000, 03:42 AM
ace ace is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Beijing,PRC
Posts: 7 ace User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old January 18th, 2000, 01:03 PM
Justin Justin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 3 Justin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yeah, I got it by using 3.0.11.

Thanks,
Justin

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > php3_mysql.dll will _not_ load! "undefined function" error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway