<?php
echo $_POST['bookname']."<br/>";
echo $_POST['price']."<br/>";
echo $_POST['type']."<br/>";
$bookname = $_POST['bookname'];
$price = $_POST['price'];
$type1 = $_POST['type'];
require_once 'conn.php';
$result = mysql_query("insert into book (`bookname`,`price`,`time`) value ('$bookname','$price','$type1')");
dump($result);
// if($result){
// echo "添加成功";
// }
// else{
// echo '添加失败';
// }
?>
添加回答
举报
0/150
提交
取消