$rs = $db->prepare('select * from orders where employeeid= 5 ');
$rs -> execute();
$result_arr = $rs->fetchAll();
上面能执行成功
$rs = $db->prepare('select * from orders where employeeid= ? ');
$rs -> execute(array(5));
$result_arr = $rs->fetchAll();
下面这就是查不到数据,有人知道吗?
execute的参数不对吧
就上面一模一样啊,没道理啊