alcatrazbr
4/30/2015 - 9:20 AM

Select um registro

Select um registro


            $select =  $tbCliente->select();
            $select->setIntegrityCheck(false)
                    ->from('Cliente', array("qtd"=>'count(1)'))
                    ->where('email like ?', $formData['email'])
                    ->where('password = ?',$formData['password']);
            
            $Dados = $tbCliente->fetchRow($select);
            echo $Dados['qtd'];