Last Insert ID not working, returning Call to undefined method CI_DB_mysql_driver::inserted_id() |
[eluser]AlexKrycek[/eluser]
Hello, We are developing a application in CodeIgniter. This app can create pages, when we create a page (do a database insert) we want to have the last Inserted ID of that insert query. We have below code that works on our localhost (usbwebserver and a testserver with an hoster A). However on the server of another hoster (Hoster B) it aint working. Code: $data['inMainMenu'] = $_POST['inMainMenu']; With Hoster B we get the following error message in Direct Admin [Thu Mar 07 10:51:18 2013] [error] [client 87.212.150.195] PHP Fatal error: Call to undefined method CI_DB_mysql_driver::inserted_id() in /home/NAME/domains/SUB.DOMAIN.nl/public_html/application/models/page_model.php on line 161, referer: http://SUB.DOMAIN.nl/ Hoster B (problem) : PHP Version 5.2.17 Hoster B (working) : PHP Version 5.3.17 in database.php we use Code: $active_group = 'default'; Anyone an idea what could be wrong with Hoster B (if its Hoster B or we) ? Does inserted_id() depends on some PHP configuration (Hoster B recently changed some secutiry and disabled the following in PHP : exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source |
Messages In This Thread |
Last Insert ID not working, returning Call to undefined method CI_DB_mysql_driver::inserted_id() - by El Forum - 03-07-2013, 03:05 AM
Last Insert ID not working, returning Call to undefined method CI_DB_mysql_driver::inserted_id() - by El Forum - 03-07-2013, 03:20 AM
Last Insert ID not working, returning Call to undefined method CI_DB_mysql_driver::inserted_id() - by El Forum - 03-07-2013, 03:32 AM
|