🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #9091

Re: PHP en MySQL

#9091
From: Toni Van Remortel
Date: Thu, 30 May 2002 13:35
29 lines
1863 bytes
Toni Van Remortel wrote:

> Jo Voordeckers wrote:
> 
>> Jo Voordeckers wrote:
>> 
>>>> Enige oplossing?
>>> 
>>> Ja er bestaat een last-inserted-autoincrement-id ofzo functie, zoek maar
>>> eens op mysql.com... als je het niet vindt zal ik m'n PHP4 handboek eens
>>> openen...
>> 
>> Heb het voor jou even opgezocht...
>> 
>> http://www.mysql.com/doc/G/e/Getting_unique_ID.html
> 
> Bon, dat is enkel op MySQL-niveau.
> Heb gevonden wat ik nodig heb op PHP-niveau:
> 
> mysql_query($query);
> $id = mysql_insert_id(); <-- DAT IS EM!! :-)

Boek : Teach yourself PHP4 in 24 Hours (Sams)
p. 203 :-)

-- 
Detected virus 'Windows'.
Unable to delete virus 'Windows'.
Rebooting ...
Technical Details
Message-ID: <oUpJ8.1340$ud.172@afrodite.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
References: <hBpJ8.1295$ud.150@afrodite.telenet-ops.be> <LFpJ8.1304$ud.37@afrodite.telenet-ops.be> <kKpJ8.1315$ud.162@afrodite.telenet-ops.be> <JTpJ8.1337$ud.160@afrodite.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,cf4ed9881c2727f0
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-05-30 06:35:20 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
From: Toni Van Remortel <ToniVR@softhome.net>
Subject: Re: PHP en MySQL
Newsgroups: be.comp.programming
References: <hBpJ8.1295$ud.150@afrodite.telenet-ops.be> <LFpJ8.1304$ud.37@afrodite.telenet-ops.be> <kKpJ8.1315$ud.162@afrodite.telenet-ops.be> <JTpJ8.1337$ud.160@afrodite.telenet-ops.be>
Lines: 29
Organization: -
User-Agent: KNode/0.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <oUpJ8.1340$ud.172@afrodite.telenet-ops.be>
Date: Thu, 30 May 2002 13:35:16 GMT
NNTP-Posting-Host: 213.118.12.114
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1022765716 213.118.12.114 (Thu, 30 May 2002 15:35:16 MET DST)
NNTP-Posting-Date: Thu, 30 May 2002 15:35:16 MET DST