Welcome Guest, Not a member yet? Register   Sign In
Using the Active Record library as a standalone
#3

[eluser]Frunkie[/eluser]
Your right, AR is a part of the DB library. My bad. I'm really new to CI and fairly new to OOP so please bear with me.

What I have done is stripped out the database directory from the CI build and put that in the root directory of my server.

I edited the DB.php file and put my dsn info into the DB function ($params=''). I defined my BASEPATH and EXT in the DB.php file as well.

I created a test.php file in the same directory and included the DB.php file. How do I run a query from there? Am I missing something else?

Also, thank you for your fast reply!


Messages In This Thread
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 08:53 AM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 09:03 AM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 09:26 AM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 10:11 AM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 10:23 AM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 11:21 AM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 05:55 PM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 06:22 PM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 06:39 PM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 07:06 PM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 08:04 PM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 08:08 PM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 09:25 PM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 10:17 PM
Using the Active Record library as a standalone - by El Forum - 01-02-2009, 10:41 PM
Using the Active Record library as a standalone - by El Forum - 06-07-2010, 03:30 PM
Using the Active Record library as a standalone - by El Forum - 03-09-2012, 04:42 PM
Using the Active Record library as a standalone - by El Forum - 01-18-2013, 05:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB