我现在的代码是:
$stmt = $this->db->getConnection()->prepare("insert into condutor(name, accessLevel, status, lastLoginDate)
values(?, ?, ?, ?)");
$stmt->bind_param("siis", $driver['name'],
$driver['accessLevel'],
$driver['status'],
$driver['lastLoginDate']);
$stmt->execute();
$stmt->close();
有没有办法做类似的事情:
$stmt->bind_param("siis", $driver);
而不是将每个变量作为参数传递给数组?