eakgul
eakgul

Reputation: 3698

Codeigniter get one column with this->db->like()

I'm trying to do a search in a table with LIKE utility.There are 8 column in the table but i need one of them. So that I should get one column. How can i do that with codeigniter?

Upvotes: 0

Views: 416

Answers (1)

Ryan Kempt
Ryan Kempt

Reputation: 4209

If you only want one column returned, you would use:

$this->db->select('column_name');

Before using your like() statement.

Upvotes: 1

Related Questions