Call to undefined function MySQL_ERROR

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Al

    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\wwwr oot\pmnl\includ e\lang\english. php on line 199


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

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

    Can anyone point me in the right direction here?

    Thanks

    -Al

  • Philip  Olson

    #2
    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_functio ns 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?

    Comment

    • Mike Willbanks

      #3
      Re: Call to undefined function MySQL_ERROR

      Al,
      [color=blue]
      > Fatal error: Call to undefined function MYSQL_ERROR() in
      > c:\Inetpub\wwwr oot\pmnl\includ e\lang\english. php on line 199[/color]

      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

      Comment

      • Al

        #4
        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

        Comment

        Working...