我面对 Invalid parameter number: parameter was not defined
是因为这个吗?
和
(
(orders.hour_begin >= :begin_hour and orders.hour_final <= :hour_final )
or
(orders.hour_begin <= :begin_hour and orders.hour_final > :hour_final )
or
(orders.date_final > :hour_final and orders.hour_final <= :hour_final )
or
(orders.hour_begin >= :begin_hour and orders.hour_final <= :hour_final )
)
Run Code Online (Sandbox Code Playgroud)
我在数组中定义了相同的参数
array('begin_hour' => $begin_hour, 'hour_final' => $hour_final)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
175 次 |
| 最近记录: |