turbocueca Posted March 25, 2006 Share Posted March 25, 2006 [code] if($page > 1) { $prev=($page-1); echo "<a href="".$_SERVER['PHP_SELF']."?page=$prev"><<Previous</a> "; } [/code]Lines 26-30[a href=\"http://infocenter.awardspace.com/pages.php\" target=\"_blank\"]http://infocenter.awardspace.com/pages.php[/a]there's an error I can't repair. Quote Link to comment https://forums.phpfreaks.com/topic/5787-error-with-phpfreaks-tutorial/ Share on other sites More sharing options...
Gast Posted March 25, 2006 Share Posted March 25, 2006 [!--quoteo(post=358293:date=Mar 25 2006, 05:51 PM:name=turbocueca)--][div class=\'quotetop\']QUOTE(turbocueca @ Mar 25 2006, 05:51 PM) [snapback]358293[/snapback][/div][div class=\'quotemain\'][!--quotec--][code] if($page > 1) { $prev=($page-1); echo "<a href="".$_SERVER['PHP_SELF']."?page=$prev"><<Previous</a> "; } [/code]Lines 26-30[a href=\"http://infocenter.awardspace.com/pages.php\" target=\"_blank\"]http://infocenter.awardspace.com/pages.php[/a]there's an error I can't repair.[/quote]Its your quotes. It should be:[code] if($page > 1) { $prev=($page-1); echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$prev\"><<Previous</a> "; } [/code]And the same for the next link if it is the same problem. You need to escape the actual quote used for the HTML tag. Quote Link to comment https://forums.phpfreaks.com/topic/5787-error-with-phpfreaks-tutorial/#findComment-20626 Share on other sites More sharing options...
turbocueca Posted March 25, 2006 Author Share Posted March 25, 2006 thx Quote Link to comment https://forums.phpfreaks.com/topic/5787-error-with-phpfreaks-tutorial/#findComment-20670 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.