I got an Error in my For Loop for some reason. I just want to go backwards through an array in php.
The Error in my Browser is:
Fatal error: Unsupported operand types in /var/html/modules/getChat.php on line 18
Line 18 in this Code part line 1:
Here is the Code:
for($x = sizeof($result-1); $x > 0; $x--)
{
echo '<div class="message '.$result[$x].'"> <img src="'.$result[$x].'" /><span class="name">'.$result[$x].'</span>
<p>'.$result[$x].'</p>
</div>';
}
I hope you can help
Thanks