08. januar 2002 - 12:15Der er
10 kommentarer og 2 løsninger
returnér id på indsat post fra php.
Hejsa.
Jeg opretter en post i en access database vha. php. Dernæst skal jeg lave nogle relationer.
Mit Spørgsmål er: Hvordan trækker jeg id\'et ud på den post jeg startede med at lave? Jeg er klar over hvordan jeg ville kunne implementere det i mySQL eller SQLserver, men hvad med Access?
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
Hi runesoft>erikjacobsen\'s @@IDENTITY will work with Access 2000 + XP (2002) but you MUST make sure that its the first that you do after INSERTING or you may risk geting the wrong value.
No, terry, it works like (ok ok ok, it SHOULD work like) this: The @@IDENTITY dingy is associated with the current connection. So don\'t close the connection, and don\'t do anything before reading it. Since multiple users don\'t share connections, it\'ll work just fine. Don\'t try this in an environment with treads sharing the connection, and don\'t try it just after your Christmas dinner.
I pray and hope Microsoft implemented it in a sensible way.
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.