No more callers. We have a winner!
Thanks to all for your input!
> From: "Geo" <[EMAIL PROTECTED]>
> Date: Fri, 4 Jan 2002 02:27:45 +0200
> To: "Tom Beidler" <[EMAIL PROTECTED]>
> Subject: Re: how can I add a variable to this sample
>
> $x[$key.'service_type'];. please tell me if it works.
>
>
>$service_type_insert = $x['${key}service_type']; //returns empty even
>though I know a value is there
change the single quotes to double, thusly:
$service_type_insert = $x["${key}service_type"];
'cause PHP is using the literal "${key}service_type" and not interpreting it
-Original Messag
> 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]; //retur
3 matches
Mail list logo