Call to undefined function MySQL_ERROR

This is a discussion on Call to undefined function MySQL_ERROR within the PHP Language forums, part of the PHP Programming Forums category; Hi Folks, I am trying to install phpMyNewsletter on my local computer which is running WinXp, IIS, php and MySQL. ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-27-2005
Al
 
Posts: n/a
Default Call to undefined function MySQL_ERROR

Hi Folks,

I am trying to install phpMyNewsletter on my local computer which is
running WinXp, IIS, php and MySQL.

When I got to access the installer file via
http://localhost/pmnl/install.php I get the following error:

Fatal error: Call to undefined function MYSQL_ERROR() in
c:\Inetpub\wwwroot\pmnl\include\lang\english.php on line 199


Line 199: (MYSQL_ERROR() ? "The following error message can help you :
".MYSQL_ERROR() : "")

Which is obviously a line that has been called to show the error.

Can anyone point me in the right direction here?

Thanks

-Al

Reply With Quote
  #2 (permalink)  
Old 05-27-2005
Philip Olson
 
Posts: n/a
Default Re: Call to undefined function MySQL_ERROR

Something is fishy here. If you have MySQL enabled, mysql_error() will
be defined 100% of the time (unless of course it's disabled through the
disable_functions PHP directive but I doubt that is the case)... Read
http://php.net/mysql for instructions on how to install MySQL.

So, is mysql_connect() defined? Are you using mysqli instead of mysql
everywhere else?

Reply With Quote
  #3 (permalink)  
Old 05-27-2005
Mike Willbanks
 
Posts: n/a
Default Re: Call to undefined function MySQL_ERROR

Al,

> Fatal error: Call to undefined function MYSQL_ERROR() in
> c:\Inetpub\wwwroot\pmnl\include\lang\english.php on line 199


Sounds like the MySQL extension is not loaded. Are you using PHP5? If
so it needs to be enabled in the php.ini. If you are not using it check
your extension path to make sure that everything is loaded.

Mike
Reply With Quote
  #4 (permalink)  
Old 05-28-2005
Al
 
Posts: n/a
Default Re: Call to undefined function MySQL_ERROR

Thanks guys, you were right on the mark - I am on php5 and had to
enable the my_sql extensions in php.ini.

Thanks again,

-Al

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:49 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0