Db error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Db error (/showthread.php?tid=54462) |
Db error - El Forum - 09-10-2012 [eluser]shahnawazahmed[/eluser] Hello everyone , i have developed paginators in the site using pagination library , i modified the sql query by adding $this->db->select , because i wanted to select specific fields from the table it showing an error A PHP Error was encountered Severity: Notice Message: Object of class CI_DB_mysql_driver could not be converted to int Filename: database/DB_active_rec.php Line Number: 877 ... Help please ?? Db error - El Forum - 09-10-2012 [eluser]TWP Marketing[/eluser] This is the code in your DB_active_record.php Quote: /**Does your code use a LIMIT clause? The value passed is expected to be numeric and is cast to an integer, as you can see. If you're not passing a numeric value for the LIMIT value, it would give the error you have seen. Check your code for the LIMIT clause and determine what is being used as the limit value. Db error - El Forum - 09-10-2012 [eluser]Aken[/eluser] Paste your code, using the [ code ] tags. |