note 125187 deleted from pdo.lastinsertid by cmb

From: Date: Mon, 13 Jul 2020 13:54:21 +0000
Subject: note 125187 deleted from pdo.lastinsertid by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214865@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- what is the correct way to get autogenerated id using PHP? tried this, but no result: "INSERT INTO "tasks" ("user_id", "desc") VALUES (:MeDoO_2_mEdOo, :MeDoO_3_mEdOo); SELECT LAST_INSERT_ID();" PDO->last insert id is wrong; fetchAll() returns: array(0) {}

« previous php.notes (#214865) next »