I have a large form that I would like to edit a number of records. I'm
putting all of the fields into one array and then I would like to pull the
fields independently from a loop.


Here's part of the loop

  foreach ($z  as $key => $value) {
      $service_type_insert = $x['$keyservice_type'];

What I'm looking for is for the $key variable to be replaced with the record
id, which is what $key is. So the second line should look like;

      $service_type_insert = $x['629service_type'];

I've tried a number of variations, i.e.;

      $service_type_insert = $x[$keyservice_type];

      $service_type_insert = $x['\$keyservice_type'];

      $service_type_insert = $x["$keyservice_type"];

Is there a way that I can format it correctly?

Thanks,
Tom 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to