Jump to content

[SOLVED] Warning: Cannot use a scalar value as an array in...


micmania1

Recommended Posts

foreach ($_POST['game_id'] as $v) {		
          if (is_numeric($_POST['gameweek'][$v])) {
       $gameweek[$v] = $_POST['gameweek'][$v];
          } else {
       $update_errors[$v]['gameweek'] = 'Invalid gameweek.';
          }
}

The problem is this line:

$gameweek[$v] = $_POST['gameweek'][$v];

 

Wht is the problem with this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.