Re: Bug interface

From: Date: Sat, 07 Jul 2001 15:42:52 +0000
Subject: Re: Bug interface
References: 1 2 3 4 5  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5277@lists.php.net to get a copy of this message
$cid isn't global in the $cid = mysql_insert_id() function ----- Original Message ----- From: "Hojtsy Gabor" <goba@mail.digitel2002.hu> To: "Jeroen van Wolffelaar" <jeroen@A-Eskwadraat.nl>; <php-mirrors@lists.php.net> Cc: <mortenp@certus.dk> Sent: Saturday, July 07, 2001 5:40 PM Subject: Re: [PHP-DEV] Bug interface > > > > BTW Jim made so heavy changes to the bug system, that it will > > > > take some time for me to get up to date. Please be patient, or > > > > wait for Jim to come... > > > > > > Ok, but IMO the bug-id problem should be fixed ASAP. Aren't > > > we loosing bugs this way? Or is it just a problem with > > > the email-notifications? > > > > I'll take a look at it. > > The relevant part from the bug table: > > id int(8) NOT NULL AUTO_INCREMENT, > > The relevant part from the PHP code: > > $ret = mysql_query("INSERT INTO bugdb > (bug_type,email,sdesc,ldesc,php_version,php_os,status,ts1,passwd) VALUES > ('$bug_type','$email','$sdesc','$ldesc','$php_version','$php_os','Open','',N > OW(),'$passwd')"); > > $cid = mysql_insert_id(); > > Then $cid is used for further mail sendings, etc... > > I don't see how 0 id's are generated... > > Goba >

« previous php.mirrors (#5277) next »