🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #9090

Re: PHP en MySQL

#9090
From: Toni Van Remortel
Date: Thu, 30 May 2002 13:34
28 lines
1727 bytes
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!! :-)

Toch merci om mij op weg te helpen.

Groeten,
ToniVR
-- 
Detected virus 'Windows'.
Unable to delete virus 'Windows'.
Rebooting ...
Technical Details
Message-ID: <JTpJ8.1337$ud.160@afrodite.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!iad-peer.news.verio.net!news.verio.net!skynet.be!skynet.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>

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:34:34 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!iad-peer.news.verio.net!news.verio.net!skynet.be!skynet.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>
Lines: 28
Organization: -
User-Agent: KNode/0.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <JTpJ8.1337$ud.160@afrodite.telenet-ops.be>
Date: Thu, 30 May 2002 13:34:33 GMT
NNTP-Posting-Host: 213.118.12.114
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1022765673 213.118.12.114 (Thu, 30 May 2002 15:34:33 MET DST)
NNTP-Posting-Date: Thu, 30 May 2002 15:34:33 MET DST