Models: Query returning one result |
[eluser]Michael Wales[/eluser]
A few things here. result() does not return an array, it returns an object. result_array() returns an array of all results. row() is what you are looking for - when you know there is only one row returned. Definitely check out the User Guide, this is all in there. |
Messages In This Thread |
Models: Query returning one result - by El Forum - 03-03-2008, 10:21 AM
Models: Query returning one result - by El Forum - 03-03-2008, 10:56 AM
Models: Query returning one result - by El Forum - 03-03-2008, 11:26 AM
Models: Query returning one result - by El Forum - 03-03-2008, 01:11 PM
|