Re: last insert id in pear
| From: | Christian Dickmann | Date: | Thu, 15 Aug 2002 16:16:20 +0000 |
| Subject: | Re: last insert id in pear | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2123@lists.php.net to get a copy of this message | ||
> function lastinsertId(){
> $id = mysql_insert_id($this->connection);
> return $id;
> }
>
> so all u do is
>
> $id = $db->lastinsertId();
Maybe we should add a method like this one:
function lastInsertId() {
echo "STOP! Turn around and see the Manual at pear.php.net";
};
Christian Dickmann