Welcome Guest, Not a member yet? Register   Sign In
MySQL Data Retrieval
#5

[eluser]bhogg[/eluser]
The question has nothing to do with it Wink I'm encapsulating everything within the class instead of using the model CI provides. I can then do more advanced things in the __get / __set methods, handle logic for creating a new instance in __construct, and generate overall cleaner code. ORM solutions likely exist that could do this in a few less lines of code but I don't need to make it that abstract - the chance of the DB backend changing are slim to none.

Regardless, the fact remains that using the DB object as opposed to using the MySQL object directly returns different data, and I'm not sure why? I'm sure there's a configuration parameter that determines how the data is formatted, or else perhaps there's a layer between MySQL that might not need to be there...


Messages In This Thread
MySQL Data Retrieval - by El Forum - 06-17-2009, 11:12 AM
MySQL Data Retrieval - by El Forum - 06-17-2009, 11:58 AM
MySQL Data Retrieval - by El Forum - 06-17-2009, 05:19 PM
MySQL Data Retrieval - by El Forum - 06-17-2009, 11:51 PM
MySQL Data Retrieval - by El Forum - 06-18-2009, 02:16 AM
MySQL Data Retrieval - by El Forum - 07-01-2009, 01:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB