0

I'm working on a query that checks if a user exists in the database. The query returns an error :

"Table inventory_db.tbl_userss' doesn't exists".

The problem is in my code I'm cleary stating that the table name is just tbl_users not tbl_userss.

$query = $this->db->select('username')
    ->where('username', $username)
    ->get('tbl_users');

return $query->row();

Just yesterday it was working fine, didn't changed anything in my code. If it helps the database collation is utf-8 unicode_ci.

Mickaël Leger
  • 3,426
  • 2
  • 17
  • 36

0 Answers0