<?php
header("content-type:text/html;charset=utf-8");
include_once("conn.php");
if(!($_POST['bookname']and $_POST['price'] and $_POST['f_time'] and $_POST['type'])){
echo "输入不允许为空。单击<a href='javascript:onclick=history.go(-1)'>这里</a> 返回";
}else{
$result = mysqli_query($conn,$sqlstr1);
if($result){
$sqlstr1 ="insert into tb_demo02 values(","'.$_POST['bookname'].'","'.$_POST['bookname'].'
","'.$_POST['bookname'].'","'.$_POST['bookname'].'")";
echo "添加成功,点击<a href='select.php'>这里</a>查看";
}else{
echo "<script>alert('添加失败');history.go(-1);</script>";
}
}
?>
Parse error: syntax error, unexpected ',' in C:\xampp\htdocs\11.php on line 9
LIANHK