php 向数据库插入数据
为什么插入数据后,数据库里面只显示id(我设置的是auto_increment),插入的内容无法显示
但是程序没有显示错误
这是为什么呢?
if($_POST['submit'])
{
$db = mysql_connect("localhost","root");
mysql_select_db("xuesheng",$db);
var_dump($_POST['first']);
$sql = "INSERT INTO employees (first,last,adress,position) VALUES('$first','$last','$adress','$position')";
$result = mysql_query($sql);
echo "input sucess!!!";
}