[nflug] PHP question

Franklin Kumro Jr fkumro at gmail.com
Fri Jun 1 13:02:02 EDT 2007


You should be fine with isset unless your dealing with NULL values (set to NULL)

On 6/1/07, Rob Dege <livemotion at gmail.com> wrote:
> A question for the PHP gurus out there.  I am using this function on a webpage:
>
> function list_admins($admin_array) {
>   $i = 0;
>   while ($admin_array[$i][0])
>     {
>       echo "\n    <option value={$admin_array[$i][0]}>
> {$admin_array[$i][1]} \n";
>       $i++;
>     }
> }
>
>
> The function works correctly, and the info is echo'd to the webpage.
> However, I get an error message in the apache logs, which I am unable
> to decipher:
>
> [error] PHP Notice:  Undefined offset:  6 in system_functions.php on line 117
>
> The line it errors on is the 'while ($admin_array[$i][0])' statement.
> Does anyone know what it's complaining about?
>
> --
> -Rob
>
> Ben Franklin Quote: "They that can give up essential liberty to obtain
> a little temporary safety deserve neither liberty nor safety."
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>


-- 
Frank
Shenanigans!!
I do the voodoo that I do do with sudo!
http://www.syncoder.com


More information about the nflug mailing list