I want to have a function that will execute a query similar to this:
"DELETE * FROM 'my_table' WHERE 1"
This will allow me to let the user clear a table without going through the trouble of individual deletes.
I looked at this post
but I ran into the same error that is described in reply #9
Fatal error: Call to a member function result() on a non-object in /public_html/control/application/models/custom_query_model.php on line 18
Is there a better way to accomplish this and if not, then how do I get around this error?
Thank you in advance for your help.