Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
自動インクリメントする主キーを持つテーブルがあります。そのテーブルに行を挿入し、mysql_insert_id()そのテーブルに挿入された最後のIDを取得するために使用するたびに、0が返されます。
mysql_insert_id()
他にどのような問題が発生する可能性がありますか?
OpenCartが提供する方法を使用します。
$this->db->getLastId()