A Database Error Occurred Error Number: 1054

前端 未结 1 1657
感情败类
感情败类 2021-01-26 07:50

i tried to make option delete for my CI with sql, but why its still error?

error warning:

A Database Error Occurred

Error Number: 1054
         


        
1条回答
  •  遥遥无期
    2021-01-26 08:36

    You need to quote the string. Try this:

    $id_label = $this->db->query("select * from t_label where label = '" . $name->USER_NAME . "'")->row();
    

    0 讨论(0)
提交回复
热议问题