PHP_Idiot Posted May 26, 2013 Share Posted May 26, 2013 (edited) Hi Freaks I believe this is caused by changing from 5.3 to 5.3, but what I can't work out is what the problem actually is! This is the code section that is giving the error: specifically lines 106-9 & 113 $bonusGROUPED[$row[1].$row[2].$row[3]] = $bonusGROUPED[$row[1].$row[2].$row[3]] + $row[4] + $row[5]; //grouped data with bonus chips $pointsGROUPED[$row[1].$row[2].$row[3]] = $pointsGROUPED[$row[1].$row[2].$row[3]] + $row[6]; //creates grouped data for each player with points $totalpointsGROUPED[$row[1].$row[2].$row[3]] = $totalpointsGROUPED[$row[1].$row[2].$row[3]] + $row[4] + $row[5] + $row[6];//creates grouped data for each player with points $playedGROUPED[$row[1].$row[2].$row[3]] = $playedGROUPED[$row[1].$row[2].$row[3]] +1; //creates grouped data for number of times played $GBPCPoints = $totalpointsGROUPED[$row[1].$row[2].$row[3]] * $average_by_venue[$row[3]] ; // calculates number of chips $CHIPS = ceil($GBPCPoints / 1) * 1; //rounds up chipstack to nearest 25 $arrGROUPED[$row[1].$row[2].$row[3]] = array(1 => $row[1], 2 => $row[2], 3 => $row[3], 4 => $bonusGROUPED[$row[1].$row[2].$row[3]], 5 =>$pointsGROUPED[$row[1].$row[2].$row[3]], 6 => $totalpointsGROUPED[$row[1].$row[2].$row[3]], 7 => $playedGROUPED[$row[1].$row[2].$row[3]], 8 =>$CHIPS); //creates new array combining all the above data } To be honest I don't fully understand the error, so perhaps an idiots walk through of potential causes could help me rather than examining the code! Either way any help would be much appreciated. Cheers Edited May 26, 2013 by PHP_Idiot Quote Link to comment https://forums.phpfreaks.com/topic/278411-warning-illegal-string-offset-suddenly-appearing/ Share on other sites More sharing options...
ginerjm Posted May 27, 2013 Share Posted May 27, 2013 What is the actual error please... Quote Link to comment https://forums.phpfreaks.com/topic/278411-warning-illegal-string-offset-suddenly-appearing/#findComment-1432523 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.