Does any one know what this error message means?
[Tue Apr 09 16:17:44 2002] [error] PHP Warning: Undefined offset: 2 in d:\apache\apache\htdocs\php\billing\inc\state_list.inc on line 8
It comes up in my Apache error.log file after this script gets called via an include statement.
<?
$state = array(\'NJ\', \'MD\');
echo \"<select name=\'state\'>\";
//this for loop returns a formatted option tag for the state select list
$i = 0;
for($i=$i; $i<=50; $i++)
{
echo \"<option value=\'\".$state[$i].\"\'>\".$state[$i].\"</option>\";
}
echo \"</select>\";
?>
Thanks for the help/suggestions.
Tom