html表单运行.php错误问题

表单提交后运行老出现警告信息,这是什么问题啊
Warning: mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, boolean given in D:\phpStudy\WWW\FunPic\txet\04\addBook.php on line 19

Warning: mysqli_stmt_execute() expects parameter 1 to be mysqli_stmt, boolean given in D:\phpStudy\WWW\FunPic\txet\04\addBook.php on line 21

Warning: mysqli_stmt_affected_rows() expects parameter 1 to be mysqli_stmt, boolean given in D:\phpStudy\WWW\FunPic\txet\04\addBook.php on line 22
添加失败

代码:
<?php
//连接数据库
$link = mysqli_connect('localhost','root','root','db_users');
if(!$link){
die('连接失败:'.mysqli_connect_errno());
}
//接收数据
$name = $_POST['name'];
$category =$_POST['category'];
$price =$_POST['price'];
$publish_time =$_POST['publish_time'];

//插入数据库
$sql = "insert into tb_users(name,category,price,publish_time) values(?,?,?,?)";
/*$stmt = mysqli_query($link,$sql);*/
//预处理
$stmt = mysqli_prepare($link,$sql);
//绑定参数
mysqli_stmt_bind_param($stmt,'ssds',$name,$category,$price,$pubilsh_time);
//执行SQL语句
mysqli_stmt_execute($stmt);
if(mysqli_stmt_affected_rows($stmt)){
echo"alert(&#39;添加成功&#39;);window.location.href=&#39;index.php&#39;<script>&quot;;<br> }else{<br> echo&quot;添加失败&quot;;<br> }</p>

是缺错误处理吧,详见https://stackoverflow.com/questions/2228430/mysqli-throws-warning-mysqli-stmt-bind-param-expects-parameter-1-to-be-mysql

 $sql = "insert into tb_users(name,category,price,publish_time) values(?,?,?,?)";

这其中的字段name需要用反引号括起来,写成:

 $sql = "insert into tb_users (`name`,category,price,publish_time) values (?,?,?,?)";