Jump to content

I don't see the error, any help?


Lamez

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.