Fatal Error: Call to undefined method CI_DB_mysql_driver::orderby() - HELP! - 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: Fatal Error: Call to undefined method CI_DB_mysql_driver::orderby() - HELP! (/showthread.php?tid=51088) |
Fatal Error: Call to undefined method CI_DB_mysql_driver::orderby() - HELP! - El Forum - 04-20-2012 [eluser]antoniog[/eluser] I'm running the code that comes from the manual "Professional CodeIgniter" and arrived at this loading the page I get the following fatal error message: Code: Fatal error: Call to undefined method CI_DB_mysql_driver::orderby() in /home/youngtea/public_html/igniter/application/models/mproducts.php on line 32 Below is the code mproducts.php: Code: <?php This is the code on the manual and I tried for a wrong that does not exist for it. I tried to remove the double quotes but the error is fatal! There may be a name change of the method at this point I do not know? The code was written for CodeIgniter 1.5., My version is 2.1. Thank you all for your practical support. Fatal Error: Call to undefined method CI_DB_mysql_driver::orderby() - HELP! - El Forum - 04-20-2012 [eluser]InsiteFX[/eluser] it's! This why you need to read the CodeIgniter Users Guide... Code: order_by Fatal Error: Call to undefined method CI_DB_mysql_driver::orderby() - HELP! - El Forum - 04-20-2012 [eluser]antoniog[/eluser] [quote author="InsiteFX" date="1334912790"]it's! This why you need to read the CodeIgniter Users Guide... Code: order_by Thank you very much. In the User Guide i have found order_by(), then change to get_where(). |