I'm using a select * query from a table.
$query = $this->db->get($table_name);
what I want is to for it to discard all records where the value for a column is empty so for example
Array
{
Topic_1 ->
Topic_2 -> Cats
}
It would discard Topic_1 key and value pair entirely. I'm also using Codeigniter active record so I tried doing
$query = $this->db->get_where($value, array(test_id != 'NULL'));
But i cannot specify each column, I just want test_id to be all columns in the table? Is there someone I can do this or can I just run a loop after the query is returned where it discards unmatched key value pairs?