Why am I getting an error in this code?
Here's the code: http://pastebin.com/UViXYHk1
This is t开发者_如何学编程he error I get: Parse error: syntax error, unexpected ';', expecting ')' in blog.php on line 32
Anybody have an idea?
You need to change this line
<?php if( $c < 4 ) : for ($dummy= $c; $dummy < 5; $dummy++;) : ?>
to
<?php if( $c < 4 ) : for ($dummy= $c; $dummy < 5; $dummy++) : ?>
Notice you had an extra semi-colon in your for() loop
Remove the last ';' between $dummy++
and the closing ')'.
精彩评论