Welcome Guest, Not a member yet? Register   Sign In
Can I use ezSQL with codeigniter?
#3

[eluser]jv2222[/eluser]
Just a quick note to say I've ported ezSQL to work with native codeigniter functions.

So, basically it means you can use ezSQL as you are used to working with it, but it uses the default codeigniter connectors to access the DB.

You can get it here: http://ezsql.jvmultimedia.com/

Once installed you can use like so in your controller functions...

Code:
function index()
{
   global $db;
   $db->get_var("SELECT CURDATE()");
   $db->debug();
}
    
or you can do this...
    
function index()
{
   $this->ezsql->get_var("SELECT CURDATE()");
   $this->ezsql->debug();
}


Hope someone finds it useful!

Cheers,
Justin


Messages In This Thread
Can I use ezSQL with codeigniter? - by El Forum - 12-03-2009, 01:13 PM
Can I use ezSQL with codeigniter? - by El Forum - 12-03-2009, 03:41 PM
Can I use ezSQL with codeigniter? - by El Forum - 12-03-2009, 05:22 PM
Can I use ezSQL with codeigniter? - by El Forum - 03-20-2010, 11:22 AM
Can I use ezSQL with codeigniter? - by El Forum - 03-20-2010, 12:10 PM
Can I use ezSQL with codeigniter? - by El Forum - 03-20-2010, 12:54 PM
Can I use ezSQL with codeigniter? - by El Forum - 04-01-2010, 02:04 AM
Can I use ezSQL with codeigniter? - by El Forum - 06-14-2010, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB