[eluser]jared4444[/eluser]
I have records in database table called payments. I have a model called payments_model which has the same fields as the db. I have a function in the model that gets a payment from the db by id
function getpaymentbyid($id)
if ($query->num_rows() > 0)
{
$row = $query->row();
$this->ID = $row->ID;
$this->name = $row->name;
How do I get more than one row in the db and return that? Do I make a model which contains an array of this model? Is there another option?