CodeIgniter Forums
loading sql results - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: loading sql results (/showthread.php?tid=47108)



loading sql results - El Forum - 11-26-2011

[eluser]bhbutter123[/eluser]
My question is this: what is the standard method for retrieving data from a database, say you only need 1 row of data from the database...should you just have all of your reads go through one generic function in the model then do your manipulating from within the retrieved array or should you make a seperate model function that just selects that one row? What is the standard for CRUD, do you just have one creat, one read, one update and one delete for each database table?
Thanks