cred ca vrei ceva de genu asta....
$key_list=array_keys($_GET); //daca formu are method POST ... pui $POST
foreach($key_list as $xxl)
{
mysql_query("insert into tablelulupeste
values(\"$xxl\",\"".$_post[$xxl]."\")");
}
Cristian Bica
Network Administrator
Romania Data Systems
http://www.rdsnet.ro
----------------------------------------------------------------------------
------------------------------
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such a case, you should destroy this message and
kindly notify the sender by reply e-mail.
----- Original Message -----
From: "Iulian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 8:31 AM
Subject: [rlug] Re: preluare variabile PHP
> Bate-ma, omoara-ma dar nu pricep ce vrei sa faci. intr-adevar ar trebui
> sa poti folosi "insert into" direct din php fara nici o problema. Te rog
> explica un pic mai pe larg.
>
> syscoder.
>
> On Fri, 2003-02-14 at 00:09, C. A. wrote:
> >
> > Salutare lista!
> >
> > Am si eu o problema si nu ma mai descurc:
> > dintr-un form (care se genereaza dintr-un mysql_fetch_row()) trimit
> > variabile catre un fisier PHP care le primeste ca $QUERY_STRING cam asa:
> > idg12=12&idu5=5&idn17=17&idu6=6&idn8=8
> > and so on...
> > Numarul variabilelor nu este constant, in schimb am facut ca valoarea
> > (numerica) pe care o trimit ele sa fie aceeasi ca si in nume.
> > Problema este urmatoarea:
> > cum fac sa bag (pentru stocare temporara (1 min - 1 ora)) intr-o tabela
> > test(id char(6), valoare char(3))
> >
> > insert into test values('idg12','12');
> > insert into test values('idu5','5');
> > . . .
> > . . .
> > insert into test values('idn8','8');
> >
> > samd.
> >
> > Multam pentru eventuale hint'uri
> >
> > [EMAIL PROTECTED]
> >
> >
> > ----------------------------------------------------------
> > Acest mesaj a fost trimis prin http://webmail.exonsite.ro
> > --
> > Pentru dezabonare, trimiteti mail la
> > [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
> > REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
> >
> >
> >
> --
> IULIAN DEMETRESCU
> Payment Systems Manager
>
> SATELROM SRL
>
> Str Drobeta nr. 4-10
> etaj 2 ap. 9 sct. 2
> 70258 BUCHAREST ROMANIA
>
> Tel. +4021 212 19 86
> Fax +4021 212 19 87
> Mob. +4074 013 00 32
> Mob. +4078 810 41 73
>
> e-mail [EMAIL PROTECTED]
>
> --
> Pentru dezabonare, trimiteti mail la
> [EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
> REGULI, arhive si alte informatii: http://www.lug.ro/mlist/
>
>
>
--
Pentru dezabonare, trimiteti mail la
[EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/