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; } Link to comment https://forums.phpfreaks.com/topic/199534-i-dont-see-the-error-any-help/ 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. Link to comment https://forums.phpfreaks.com/topic/199534-i-dont-see-the-error-any-help/#findComment-1047282 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.