abrogard Posted January 15, 2011 Share Posted January 15, 2011 I get this error message: Parse error: parse error, unexpected '=' in c:\Inetpub\wwwroot\xyford\manual\mybook.php on line 46 And here's line 46. The "=" causing the trouble is, I think, the "chapter=" one. if ($prevPage > $chapters[$chapter][0]) $out .= "<a href="/mybook.php?chapter={$chapter}&page={$prevPage}">Prev</a>"; I can't see what to do about it. Can anyone help? Link to comment https://forums.phpfreaks.com/topic/224554-unexpected-i-cant-see-what-to-do/ Share on other sites More sharing options...
Lee Posted January 15, 2011 Share Posted January 15, 2011 I think you need to escape the double quotes.. if ($prevPage > $chapters[$chapter][0]) $out .= "<a href=\"mybook.php?chapter={$chapter}&page={$prevPage}\">Prev</a>"; Link to comment https://forums.phpfreaks.com/topic/224554-unexpected-i-cant-see-what-to-do/#findComment-1159940 Share on other sites More sharing options...
abrogard Posted January 15, 2011 Author Share Posted January 15, 2011 Thank you, Bob.... onwards to the next prob. Link to comment https://forums.phpfreaks.com/topic/224554-unexpected-i-cant-see-what-to-do/#findComment-1159945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.