Article View: de.comp.lang.php
Article #36Re: Help Index Field of Insert Query
From: Martin Jansen
Date: Mon, 14 Aug 2000 00:00
Date: Mon, 14 Aug 2000 00:00
13 lines
1132 bytes
1132 bytes
* "Jose Luis" <joseluis@REMOVEMEferca.com> wrote:
>My query is:
> $query = "INSERT INTO name_table VALUES("'',FREDERIC ROSSELL")";
> $mysql_result = mysql_query($query, $mysql_link);
>
>How i can know what is the value of field id of the new record.
$id = mysql_insert_id();
Martin
--
Martin Jansen � mailto:mail@martin-jansen.de
PGP 0x18176561 � http://www.php.martin-jansen.de/
Technical Details
Message-ID:
<s0qfps0bnqjh9t0l93e986utbk5rhdlmnf@4ax.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8n8kfk$es0$1@talia.mad.ttd.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10f92b,da3288fad35d9984 X-Google-Attributes: gid10f92b,public X-Google-Thread: 10ce1c,da3288fad35d9984 X-Google-Attributes: gid10ce1c,public From: Martin Jansen <mail@martin-jansen.de> Subject: Re: Help Index Field of Insert Query Date: 2000/08/14 Message-ID: <s0qfps0bnqjh9t0l93e986utbk5rhdlmnf@4ax.com> X-Deja-AN: 658104122 Content-Transfer-Encoding: 8bit References: <8n8kfk$es0$1@talia.mad.ttd.net> Content-Type: text/plain; charset=ISO-8859-1 X-Trace: fu-berlin.de 966257042 8307916 212.202.71.73 (16 1667 [8988]) Organization: Chaos, Unordnung & Co GmbH Mime-Version: 1.0 Reply-To: derjansen@gmx.de (Martin Jansen) Newsgroups: de.comp.lang.php,ba.php