开发者

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 ')'.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜