I have this code in codeIgniter, the data doesn't output with that code, how can I output the data using join in code Igniter?
Code:
$userId=$this->session->userdata('uid');
$utype= $this->session->userdata('utype');
if($utype == 5){
$checkUser = "SELECT across_client_admin.clientId, accross_client.clientName, accross_client.clientAddress,accross_client.clientContactNumber,accross_client.clientEmailAddress
FROM across_client_admin
INNER JOIN accross_client
ON across_client_admin.clientId=clientId.clientId
WHERE across_client_admin.clientCompanyUserAccountId=$userId";
$DB = $this->load->database('default', TRUE);
$QueryNow = $DB->query($checkUser);
$count=0;
foreach($QueryNow ->result() as $vals):
$sd = $vals->clientName;
endforeach;
Comment