[eluser]John_Betong_002[/eluser]
[quote author="Creox" date="1308249769"]Thanks,
I know get the error
Code:
Invalid query: Whole query: Resource id #26
Your code above also checks a variable called $result at the end but that deos not appear anywhere else in your code.
What is the problem with this? Please guys I have no idea![/quote]
Please accept my apologies for not testing the code. The script was copied and pasted.
The variable $result should be $query.
It looks like the connection to your database is OK and the problem is with the CI Active Record script.