当我使用变量作为参数时,数据没有出现

时间:2019-07-02 06:42:46

标签: javascript php plsql

我尝试通过模式显示数据,使用变量时,数据不会出现在浏览器中。 但是当我使用固定数字而不是变量(327)时,数据正常显示, ps:当我打印变量时,它给出的值与我固定输入的数字相同(327)

    $x=$this->input->post('SEQ');
    $data = $this->image->PIC_News_SELECT($x); // there are no output   
    header('Content-Type: application/json');
    echo json_encode($data);


 $data = $this->image->PIC_News_SELECT(327); // the data appears normally 
 header('Content-Type: application/json');
 echo json_encode($data);

0 个答案:

没有答案