I have a simple CodeIgniter Active record query to select an ID:
$q = $this -> db
-> select('id')
-> where('email', $email)
-> limit(1)
-> get('users');
How can I assign the above ID to a variable (eg. $id) For example,
echo "ID is" . $id;
Thanks.