老师,我写了两条插入语句,但是,最后主键没有增加,还是0;
$num1='218';
$name1='zj';
$sql1="insert into user(num,name) value('$num1','$name1')";
mysql_query($sql1);
$num2='201';
$name2='xx';
$sql2="insert into user(num,name) value('$num2','$name2')";
mysql_query($sql2);
$uid=mysql_insert_id();
echo "主键id:".$uid;
这都不会
横空hero