<?php
$conn=mysql_connect("localhost","root","")or die("链接错误");
mysql_select_db(`new`,$conn);
$sql="INSERT INTO `new`.`test` (`id`, `name`, `regdate`)values('',“张啊”,now())";
mysql_query($sql,$conn);
?>
不行
没反应!
<?php
$conn=mysql_connect("localhost","root","")or die("链接错误");
mysql_select_db(`new`,$conn);
$sql="INSERT INTO `new`.`test` (`id`, `name`, `regdate`)values('',“张啊”,now())";
mysql_query($sql,$conn);
?>
不行
没反应!
<?php
$conn=mysql_connect("localhost","root","")or die("链接错误");
mysql_select_db(`new`,$conn);
$sql='INSERT INTO `new`.`test` ( `name`, `regdate`)values(“张啊",'.now().')';
mysql_query($sql,$conn);
?>
不要密码么
id是不是自动排序 是就不能插入