0
에서 foreach 루프에서 볼 수 세션 변수에서 값을 전달합니다 :는 어떻게 코드를 다음 한 CodeIgniter의
$m1 = $this->dbop->customquery('SELECT DISTINCT number FROM users');
$message =''; $email='';
$count=array();
foreach($m1 as $item){
$message='';
$count=array();
$m2 = $this->dbop->customquery("SELECT * FROM users where
number='".$item->number."'");
foreach ($m2 as $value) {
//$data['alldata'] = $value;
$count[] = $this->dbop->customquery("SELECT * FROM
s_data where userid='".$value->id."'");
$os_count = $this->dbop->customquery("SELECT * FROM
os where userid='".$value->id."'");
$data['dd']=$this->dbop->customquery("SELECT * FROM os
where userid='".$value->id."'");
}
}
$data['username'] = $this->session->userdata('username');
$this->load->view('header-inside', $data);
$this->load->view('am-report' , $data);
$this->load->view('crm/footer-inside');
내가 $data['dd]
보기에 전달하려는. 현재 내가 수신하고있는 것은 첫 번째 가치입니다. 나를 도와주세요
나는 사용법이 끝났다고 말했지만 지금은 아무것도 보이지 않는다. @AnilShrestha –
무엇을 의미 하는가? 배열이기 때문에 foreach를 사용하여 값을 반향시켜야합니다 –
opps 내 실수가있었습니다. 당신 방법은 작동합니다. 고마워요. –