List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:December 15 2002 2:37am
Subject:Re: INSERT confirmation? PHP
View as plain text  
At 20:08 -0500 12/14/02, Michael T. Babcock wrote:
>Peter Lovatt wrote:
>>should do it!
>According to documentation somewhere, last insert can sometimes 
>return a different value than the most recent insert if the most 
>recent insert failed.

Why is this a problem? If the most recent insert failed, you wouldn't
expect to get a reasonable ID value.  If you were wanting to get
the value from the previous insert, you should have gotten its ID before
attempting another insert anyway.

>What is a better solution?
>Michael T. Babcock
>C.T.O., FibreSpeed Ltd.

INSERT confirmation? PHPSteve Lefevre14 Dec
  • RE: INSERT confirmation? PHPPeter Lovatt14 Dec
    • Re: INSERT confirmation? PHPMichael T. Babcock15 Dec
      • Re: INSERT confirmation? PHPPaul DuBois15 Dec
      • RE: INSERT confirmation? PHPRoger Davis15 Dec
  • Re: INSERT confirmation? PHPGiannis Vrentzos16 Dec
  • Re: INSERT confirmation? PHPGiannis Vrentzos16 Dec