Queries and SolutionsCategory: CodeIgniterHow to fix: Error Call to undefined method CodeIgniter\Database\MySQLi\Connection::select()
bestonetechnologies Staff asked 2 years ago

getting an error in codeigniter 4:
How to fix: Error Call to undefined method CodeIgniter\Database\MySQLi\Connection::select()
for line:
$this->db->select(‘*’);

1 Answers
bestonetechnologies Staff answered 2 years ago

User the below code, working for me:
$this->select(‘*’);
$this->table(“user”);
$this->where(“email”,$postData[‘username’]);
$res = $this->get();

Your Answer

9 + 5 =