|
-
Jul 19th, 2014, 08:38 PM
#1
Thread Starter
Don't Panic!
[RESOLVED] Extra [ ....??
I'm missing something, and I don't know what.
I'm running the php apache and mysql using xampp on the home machine.
I'm trying to loop an array that should already be set (with either default data or text/numbers).
But when running I get :
Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\PHP\QoS\qos_xs_tbl.php on line 193
Code:
for ( $Loop=0; $Loop<=$c; $Loop++) {
$al = aryData[$Loop][0];
/*
if ( $my == $al ) {
aryData[$Loop][1] = $row['TheValue'];
break;
}
*/
}
The line in bold is the error line (I think). Seems it doesn't want to parse the array.
Is there something I should look at that I've missed?
(it's giving me a headache)
I'm trying to read a record that has the month and year from mysql, compare that to the array (x)(0)... if it matches, then I'd put the value from the record into the array...
Repeat until the id changes, at which point it should output the array to the page, and reset the values.
Any pointers appreciated
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|