note 56415 deleted from function.mysql-insert-id by cmb

From: Date: Sun, 16 Feb 2020 13:40:59 +0000
Subject: note 56415 deleted from function.mysql-insert-id by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214128@lists.php.net to get a copy of this message
Note Submitter: bholbrook at servillian dot com ---- My apologies for the error below (that was modified out of a class) - as you cannot define a constant as an array. replace the line: <? define("ID",...); ?> with <? $mysql_id = mysql_query("..."); ?> $mysql_id is now an array in which the first element $mysql_id[0] holds the last inserted id. Apologies if anyone struggled over that one... esp. the noobs.

« previous php.notes (#214128) next »