SyntaxFix
Write A Post
Hire A Developer
Questions
one short way would be
$id = $this -> db -> select('id') -> where('email', $email) -> limit(1) -> get('users') -> row() ->id; echo "ID is ".$id;