Call to undefined function MySQL_ERROR

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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?



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 for instructions on how to install MySQL.

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

Re: Call to undefined function MySQL_ERROR


Quoted text here. Click to load it

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.


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,


Site Timeline