Subject | Re: GLOBAL Array |
---|---|
Author | anna_ppalm |
Post date | 2006-03-29T01:18:11Z |
--- In firebird-php@yahoogroups.com, "Alan McDonald" <alan@...> wrote:
Anna
>passing
> > Hello,
> >
> > Hope you can help me. I am bringing from the DB several records,
> > where only one will be update. This come to a PHP page. I am
> > the values of each record to the php page. From this page the userfrom
> > will choose one record. I than go back to the DB, get all the
> > information for that record and make available for update
> >
> > My problem is: I do not know how to differentiate the field NAME
> > record 1 to NAME from record 2. I am using $_POST[`NAME'] to getthe
> > name, but if I have to update the first record I notice once Iclick
> > submit it brings the information of the LAST record send to thepage.
> >you
> > I am trying to use an array of globals, but don't know how. Can
> > help?the db.
> >
> > Example of what I need:
> >
> > Some how take the array that is coming from DB:
> > $array_de_registros[$cont]['NOME'] = $NOME;
> >
> > Save it as a global array:
> > $GLOBAL [$cont]['NOME'] = $array_de_registros[$cont]['NOME']
> >
> > Than be able to retrieve that specific record info to retrieve
> >type='checkbox'
> > How can I do that?? Any ideas??
> >
> > Thanks,
> >
> > Anna
>
> the page fieldname needs to be an array also
> e.g.
> this is a field with a checkbox
> <input type=hidden name='hrecon[]' value=".$loanid."><input
> name='cbrecon[]' value=".$loanid." ".($C48=='Y'?'checked':'')." >I will try that Alan, Thanks
>
> Alan
>
Anna