Fatal error: Call to unsupported or undefined function mysql_errno()

March 21, 2010 - 5:54 am
  • Hello again,
    when I try to install the phorum on step 3 this message is displayed. I have search this function on a manual and say this:
    ------------------
    mysql_errno -- Returns the number of the error message from previous MySQL operation
    Description
    int mysql_errno(int [link_identifier] );
    Errors coming back from the mySQL database backend no longer issue warnings. Instead, use these functions to retrieve the error number.

    mysql_connect("marliesle");
    echo mysql_errno().": ".mysql_error()."
    ";
    mysql_select_db("nonexistentdb");
    echo mysql_errno().": ".mysql_error()."
    ";
    $conn = mysql_query("SELECT * FROM nonexistenttable");
    echo mysql_errno().": ".mysql_error()."
    ";
    ?>
    -------------------
    I have created this file and have the same error:
    ---------
    Warning: MySQL Connection Failed: Unknown MySQL Server Host 'marliesle' (0) in /home/elotrolado/htdocs/foro/prueba.php3 on line 2

    Fatal error: Call to unsupported or undefined function mysql_errno() in /home/elotrolado/htdocs/foro/prueba.php3 on line 3
    ----------
    I have changed the line 129 on db_mysql.php from
    $this->errno=mysql_errno();
    to $this->errno=mysql_error();
    for testing, and then i can go on, but on step 4 i allways have this error:

    There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.
    ------------

    Any suggestion???? :(


  • 1. WHich host/server are you using
    2. what version of php
    3. what version of vB are you installing


  • The problem was the name of the data bases, and maybe the function msql_errno() didn't work..., but i have installed the forum yet :)

    Ciao!







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Fatal error: Call to unsupported or undefined function mysql_errno() , Please add it free.