Welcome Guest, Not a member yet? Register   Sign In
simple sql query is failing
#11

it is not the browser either.
proof that an old dog can learn new tricks
Reply
#12

(This post was last modified: 06-27-2018, 09:29 AM by InsiteFX. Edit Reason: Fixed error )

And what happens if you run it like this?

PHP Code:
$this->db->select('*');
$this->db->from('users');
$this->db->where('email''[email protected]');
$this->db->limit(1);

$query $this->db->get();

if (
$query->num_rows() == 1)
{
 
   return $query->result();
}
else
{
 
   return false;


If this does not work then your problem is someplace else.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#13

PHP Code:
$this->db->where('email' '[email protected]'); 

should be

PHP Code:
$this->db->where('email''[email protected]'); 
Reply
#14

Thanks @Pertti
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB