MySQL致命错误绑定参数

时间:2018-01-19 22:35:59

标签: php mysql

我有这段代码:

CREATE TABLE works_on (
    works_on_id INT PRIMARY KEY,
    jobid INT,
    branchid INT,
    employeeid INT,
    CONSTRAINT jobid FOREIGN KEY REFERENCES job(jobid),
    CONSTRAINT branchid FOREIGN KEY REFERENCES brahc(branchid),
    CONSTRAINT employeeid FOREIGN KEY REFERENCES employee(employeeid)

);
CREATE TABLE manages (
    managerid INT,
    works_on_id INT,
    CONSTRAINT managerid FOREIGN KEY REFERENCES manager(id),
    CONSTRAINT works_on_id FOREIGN KEY REFERENCES works_on(id)
)

我试图从表单插入db,但是我收到了这个错误:

  

致命错误:在布尔值中调用成员函数bind_param()   第17行的C:\ wamp64 \ www \ gdlwebcamp \ admin \ insertar-admin.php

我已经调查了,因为准备返回假(我想是这样),尝试改变思考并逐个尝试但是不起作用,我该如何解决?感谢。

0 个答案:

没有答案