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. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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? |
|
|||
|
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 |