嗨,我在 php 文件中有一个查询,用于从 mysql 数据库中过滤文件中的数据
$_SESSION['sc_session'][$this->Ini->sc_page]['grid_deposit']['where_orig'] = " where Reg_no = \"69\"";
在这一行中,如果 Reg_no = \"69\"" ,如果我将 69 更改为任何值,数据正在被修改,但如果我使用数组而不是 69,那么它不会像这样工作
$_SESSION['sc_session'][$this->Ini->sc_page]['grid_deposit']['where_orig'] = " where Reg_no = " . $fc . "";
但如果我使用 $fc = 69; 回声 $fc;
然后它的工作但不在那条线上请告诉我如何编码这个我得到的错误是
Error
Error while accessing the database:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
select count(*) from deposit where Reg_no =