帝国cms取得刚插入表的自增ID值函数介绍,是教大家如何取得刚插入表的自增ID值函数的教程。
$empire->lastid()
使用范例:
$empire->query("insert into {$dbtbpre}ecms_news(title) values('标题')");
$lastid=$empire->lastid();
echo"刚插入的信息ID为:".$lastid;
以上是取得刚插入表的自增ID值函数的教程。