Welcome Guest, Not a member yet? Register   Sign In
autoincrement array values results in Undefined index
#2

[eluser]xwero[/eluser]
What about
Code:
if($value->voting == 1) {
   if( ! isset($voteCount[$thisDay]['pos'])
   {
      $voteCount[$thisDay]['pos'] = $value->voting;
   }
   else
   {
      $voteCount[$thisDay]['pos']++;
   }
} // rest of the code


Messages In This Thread
autoincrement array values results in Undefined index - by El Forum - 10-08-2008, 04:14 AM
autoincrement array values results in Undefined index - by El Forum - 10-08-2008, 07:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB