setErrorHandler('databaseErrorHandler'); // кодировка для mysql $DBS->query("set character_set_client='cp1251'"); $DBS->query("set character_set_results='cp1251'"); $DBS->query("set collation_connection='cp1251_general_ci'"); // запоминаем ссылку на ADO $CMS[DBS] = & $DBS; } function databaseErrorHandler($message, $info) { if (!error_reporting()) return; echo "SQL Error: $message
"; print_r($info); echo "
"; exit(); } ?>
Fatal error: Call to undefined function dbsimple_init() in /var/www/grand/grandhome.su/admiral/common.php(39) : eval()'d code on line 1