Lamez Posted April 23, 2010 Share Posted April 23, 2010 I have no idea where the error is. Here is the compiler error: Parse error: syntax error, unexpected T_INC, expecting ')' in C:\wamp\www\core\functions.php on line 336 Here is line 336: for($i = 1; $i<$max; i++){ Here is the entire function: function getPageList($max){ $pageList = ""; for($i = 1; $i<$max; i++){ $pageList .= '<a href="?page='.$i.'">Page '.$i.'</a>'; if($i > 1 && $i != $max) $pageList .= ' | '; } return $pageList; } Quote Link to comment Share on other sites More sharing options...
Lamez Posted April 23, 2010 Author Share Posted April 23, 2010 never mind, I forgot a '$' in the increment part of the for loop header. Quote Link to comment 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.