时间:2021-07-01 10:21:17 帮助过:14人阅读
";
$con = mysql_connect('localhost', 'root', '');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("test", $con);
mysql_query("set names utf8");
//$sql = " SELECT * FROM ecm_acategory ";
$sql = " insert into data (name) values('999')";
echo $sql;
$result = mysql_query($sql);
mysql_close($con);
?>