Re: Re: how can I add a variable to this sample

From: Date: Fri, 04 Jan 2002 00:29:47 +0000
Subject: Re: Re: how can I add a variable to this sample
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79415@lists.php.net to get a copy of this message
No more callers. We have a winner! Thanks to all for your input! > From: "Geo" <geomasterweb@hotmail.com> > Date: Fri, 4 Jan 2002 02:27:45 +0200 > To: "Tom Beidler" <tom@orbittechservices.com> > Subject: Re: how can I add a variable to this sample > > $x[$key.'service_type'];. please tell me if it works. > > > Best regards, > George Nicolae > IT Manager > ___________________ > X-Playin - Professional Web Design > www.x-playin.f2s.com > > > > ----- Original Message ----- > From: "Tom Beidler" <tom@orbittechservices.com> > Newsgroups: php.general > Cc: "php list" <php-general@lists.php.net> > Sent: Friday, January 04, 2002 2:00 AM > Subject: Re: how can I add a variable to this sample > > >> >> >> So far nothing seems to work which leads me to believe there's something >> else wrong. >> >> Here's what I've tried >> >> $service_type_insert = $x['926service_type']; //works fine when I hard > code >> a value in and returns proper value >> >> $service_type_insert = $x[$$keyservice_type]; //returns empty even though > I >> know a value is there >> >> $service_type_insert = $x['${key}service_type']; //returns empty even >> though I know a value is there >> >> $service_type_insert = eval($x['$keyservice_type']); //returns empty even >> though I know a value is there. I added single quotes because without it >> returned a parse error. >> >

« previous php.general (#79415) next »