[snip]
Note that $value from position[pos][$value] is different in all 3
fields.
For each element of the array i want to update the value in the
database. For example, for each value of the position[pos][$value] i
want to update the database with the specific number.
Something like this:
$
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Hi,
> I have 2 arrays:
>
> Array (
>[0] => Array (
> [0] => 28
> [1] => Music
> )
> [1] => Array (
>
Mike Johnson wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Hi,
I have 2 arrays:
Array (
[0] => Array (
[0] => 28
[1] => Music
)
[1] => Array (
for ($i = 0; $i < count($array1); i++)
$array1[$i][] = $array2[$i];
from kevin l'huillier
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 24/06/05, Josh Olson <[EMAIL PROTECTED]> wrote:
> for ($i = 0; $i < count($array1); i++)
> $array1[$i][] = $array2[$i];
>
> from kevin l'huillier
That's basically what Mike wrote (only with array_push instead of []),
and Bob improved upon. And they didn't mix the arrays up.
I was onl
At 13:46 22.02.2003, Patrick Teague said:
[snip]
>here's what I had that didn't print anything other than 3 blank lines for
>this section of code -
>
>$byteSize[0] = "bytes";
>$byteSize[1] = "kb";
>$byteSize[2] = "mb";
>
>function getMaxSize( $maxSize )
>{
>
on 22/02/03 11:46 PM, Patrick Teague ([EMAIL PROTECTED]) wrote:
> I ran into something interesting & the only thing I can figure out is that
> functions won't use any variables other than globals, those past to the
> function, or those created inside the function?
exactly :)
you bring the array
7 matches
Mail list logo