Jump to content


Photo

Extract from array


  • Please log in to reply
No replies to this topic

#1 oldschool

oldschool
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 04 May 2006 - 11:44 PM

Using following class [a href=\"http://www.phpclasses.org/browse/package/2181.html\" target=\"_blank\"]http://www.phpclasses.org/browse/package/2181.html[/a]

and the issue begins here

foreach ($_FILES['my_field'] as $k => $l) {

        foreach ($l as $i => $v) {

            if (!array_key_exists($i, $files)) 

                $files[$i] = array();

            $files[$i][$k] = $v;

        }

    }


There is a total of two posts going to this array. I want to get the contents of each, and assign them to the following variables respectively

$g_tic
$g_pos

Can I have some tips please? The final two variables go to make up the contents of a query

Thanks in advance :)
D x




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users