I'm running PHP on a Windows 8.1 server with IIS. I have a PHP script, and have managed to turn displaying errors on. I found an error on this line.
$hr06status = mysqli_fetch_array(mysqli_query($connection, "SELECT status FROM hours WHERE hour = 6"))['status'];
The exact error is on line 14 Parse error: syntax error, unexpected '['
$hr06status = mysqli_fetch_array(mysqli_query($connection, "SELECT status FROM hours WHERE hour = 6")); $hr06status = $hr06status['status'];
– Dave Chen Dec 12 '13 at 1:36mysqli_fetch_object(...)->status
– mario Dec 12 '13 at 1:38