Welcome Guest, Not a member yet? Register   Sign In
[Resolved] Query returns results in phpMyAdmin but doesn't with ActiveRecord
#11

[eluser]codeshadow[/eluser]
Hi,

The problem with your model is the final return statement:

Code:
return $results;

Just replace it with:

Code:
return $results->result_array();

The query is getting executed right now, but you cannot print it as the result has not been passed properly to the controller.
Currently in your code, the content of $results gets printed. However, query results are stored in result_array (Check you output, it contains such a term).

I hope this solves the problem.

Have fun Smile


Messages In This Thread
[Resolved] Query returns results in phpMyAdmin but doesn't with ActiveRecord - by El Forum - 01-25-2010, 01:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB