开发者

Why am I getting an error in this code?

开发者 https://www.devze.com 2023-02-12 07:01 出处:网络
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

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

精彩评论

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