| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Richard Davey | Date: | March 17 2004 3:44am |
| Subject: | Re[2]: PHP and using mysql_last_id() | ||
| View as plain text | |||
Hello Lorderon, Wednesday, March 17, 2004, 3:39:35 AM, you wrote: L> It is better run a query with: L> SELECT LAST_INSERT_ID(); L> immediately after making the insert query. that way you'll get the exact L> ID.. Why? What difference does that give between using the PHP function that returns the last ID - other than the fact it takes another query on the database? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html
| Thread | ||
|---|---|---|
| • ORACLE to MySQL migration | Enrico.Venturi | 16 Mar |
| • Re: ORACLE to MySQL migration | Karam Chand | 16 Mar |
| • RE: ORACLE to MySQL migration | Walt Weaver | 16 Mar |
| • PHP and using mysql_last_id() | sgannon60 | 16 Mar |
| • Re: PHP and using mysql_last_id() | Alex croes | 16 Mar |
| • Re: PHP and using mysql_last_id() | jeffrey_n_Dyke | 16 Mar |
| • RE: PHP and using mysql_last_id() | Elly Wisata | 17 Mar |
| • Re: PHP and using mysql_last_id() | Lorderon | 17 Mar |
| • Re[2]: PHP and using mysql_last_id() | Richard Davey | 17 Mar |
| • RE: ORACLE to MySQL migration | DChristensen | 17 Mar |
| • XML to MySQL | Boyd E. Hemphill | 17 Mar |
