我一直在尝试执行DELETE语句,甚至尝试在MySQL工作台中运行查询,但一切正常,但是在我的服务中它似乎不接受。
$statement_delete = $this->conn->prepare("DELETE FROM crm_suite_tcl.aos_products_quotes where parent_id = ?");
$statement_delete->bind_param("s", $id_pedido);
$statement_delete->execute();
$resultado_borrar_lineas = $statement_delete->get_result();
它抛出该语句为假,因此不允许我执行它 致命错误:在
中的布尔值上调用成员函数bind_param()Fatal error: Call to a member function bind_param() on boolean in C:\xampp2\htdocs\crm\service\sync\include\db_handler.php on line 210
答案 0 :(得分:0)
您将得到的错误基本上意味着,由于语法错误(不存在任何列或表),很可能无法准备语句。
尝试添加您的代码:
from time import sleep
for x in range(10):
driver.find_element_by_id("refreshShortid").click()
sleep(0.15) # you may have to increase this value to give enough time to generate the new email
new_email = driver.find_element_by_id("shortid").get_attribute('value')
print(new_email)
这应该将错误写入控制台,您将能够纠正它。