ThinkPHP框架返回插入记录的id号
ThinkPHP返回插入记录的id号
$Form->create())
$result = $Form->add();
在执行上述语句后,若存在auto_increment字段,则可以使用以下语句获得返回值。
$last_id = $Form->getLastInsID();
$last_id = $result;
你要保守你心,胜过保守一切。
本文来自博客园,作者:刘俊涛的博客,转载请注明原文链接:https://www.cnblogs.com/lovebing/p/6603503.html