@@ -36,7 +36,7 @@ class Api_model extends CI_Model {
...
@@ -36,7 +36,7 @@ class Api_model extends CI_Model {
try{
try{
$email=$data['email_id'];
$email=$data['email_id'];
$phone=$data['phone'];
$phone=$data['phone'];
$res_count=$this->db->query("SELECT * FROM customer INNER JOIN `users` ON users.id = customer.customer_id AND users.user_type = 3 WHERE users.status = 1 AND (customer.email = '$email' OR customer.phone = '$phone')")->row();
$res_count=$this->db->query("SELECT * FROM customer INNER JOIN `users` ON users.id = customer.customer_id AND users.user_type = 3 WHERE users.status = 1 AND (customer.email = '$email' OR customer.phone LIKE '%$phone')")->row();