【发布时间】:2018-09-18 06:48:42
【问题描述】:
我使用 codeigniter 并存储我的数据 比如 123,234 。
我的表名是schedule,列名是batch。
$batch = 123;
$lot =1;
$dataTest = $this->db->query("select q_set from schedule where lot='$lot'
and batch='$batch'")->row();
看我下面的图片
我尝试选择一个值并匹配我发送的值。 ##如何匹配两个值##
【问题讨论】:
-
and batch='$batch'如果$batch是 123,就像在您的代码中一样,您将找不到任何东西,因为batch在您的数据库中的值为123,321。 -
那么任何答案对您有帮助吗?不回应是很粗鲁的
标签: php html codeigniter