Commit cba072b6 by Tobin

t : profile user visibility

parent 281d5a48
...@@ -229,7 +229,14 @@ class Webservice_model extends CI_Model { ...@@ -229,7 +229,14 @@ class Webservice_model extends CI_Model {
$settingsDetails = $this->db->query($sql)->row_array(); $settingsDetails = $this->db->query($sql)->row_array();
$settingsDetails['contact_number'] = $settings['contact_number']; $settingsDetails['contact_number'] = $settings['contact_number'];
$userDetails = $this->db->query("SELECT customer.name AS name, customer.profile_image AS profile_photo,customer.profile_image_qr,customer.gender AS gender, customer.email, customer.dob, customer.profile_city AS city_name, users.notification_status, users.email_status FROM customer INNER JOIN users ON users.id = customer.customer_id WHERE customer.customer_id = ".$user_id." AND users.status = 1 ")->row_array(); $sql = "SELECT customer.name AS name,customer.profile_image AS profile_photo,
customer.profile_image_qr,customer.gender AS gender,customer.email,
customer.dob,customer.profile_city AS city_name,users.email_status,
users.notification_status,customer.enable_chat AS user_visible
FROM customer
INNER JOIN users ON users.id=customer.customer_id
WHERE customer.customer_id=$user_id AND users.status='1'";
$userDetails = $this->db->query($sql)->row_array();
if(count($settingsDetails)>0 && count($userDetails)){ if(count($settingsDetails)>0 && count($userDetails)){
$resultData = array(); $resultData = array();
$resultData = array_merge($settingsDetails, $userDetails); $resultData = array_merge($settingsDetails, $userDetails);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment