Getting the array element

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi again all,
Here my next PHP newbie question.
When I'm building an array as bellow. Is there any way I can get the left
element out of the array?

    $salesperson = array();
        
    while($row=mysql_fetch_array($result)) {

        $salesperson[$row[1]] = '0';

    }

If I write: echo $salesperson[$row[3]];
I get the value. I think you know what I mean?!

Thanks // Jonas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux