error mysqli_real_escape_string()

Discussion in 'PHP' started by nomirock, Jul 17, 2007.

  1. #1
    i am having the following error with my script

    Fatal error: Call to undefined function: mysqli_real_escape_string() in /home/....../public_html/common/classes/adodb/drivers/adodb-mysqli.inc.php on line 200


    Error: [1] [Fatal Error] Call to undefined function: mysqli_real_escape_string()
    Line: [200] /home/...../public_html/common/classes/adodb/drivers/adodb-mysqli.inc.php
    Source:
    198 if (!$magic_quotes) {
    199 if (PHP_VERSION >= 5)
    200 return "'" . mysqli_real_escape_string($this->_connectionID, $s) . "'";
    201
    202 if ($this->replaceQuote[0] == '\\')

    Debug Trace:



    Context Variables:

    array (
    'matches' =>
    array (
    0 => 'Fatal error: Call to undefined function: mysqli_real_escape_string() in /home/...../public_html/common/classes/adodb/drivers/adodb-mysqli.inc.php on line 200',
    1 => 'Fatal error',
    2 => 'Call to undefined function: mysqli_real_escape_string()',
    3 => '/home/....../public_html/common/classes/adodb/drivers/adodb-mysqli.inc.php',
    4 => '200',
    ),
    'val' => '200',
    'key' => 4,
    )
     
    nomirock, Jul 17, 2007 IP
  2. nusuni

    nusuni Peon

    Messages:
    129
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you sure your PHP 5 distro has the mysqli extension compiled in? Try doing phpinfo() to check.
     
    nusuni, Jul 18, 2007 IP