Closed Kaz-z closed 10 years ago
Hi Alan,
I have a problem where the debug message showing the contents of the $page array won't go away when I've gone to the '...&page=1' url. Im sure these lines are okay, but could you give them a glance over? cheers p.s. I'm at part 16 in the tutorial,
This is my index.php
<?php include('config/setup.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <title><?php echo $page['title']; ?> | <?php echo $site_title; ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <?php include('config/css.php'); ?> <?php include('config/js.php'); ?> </head> <body> <div id="wrap"> <?php include(D_TEMPLATE.'/navigation.php'); ?> <div class="container"> <h1><?php echo $page['header']; ?></h1> <?php echo $page['body_formatted']; ?> <?php if(isset($_GET['debug']) == 1); { ?> <pre> <?php print_r($page); ?> </pre> <?php } ?> </div> </div> <!--End Wrap --> <?php include(D_TEMPLATE.'/footer.php'); ?> </body> </html>
Fixed.
At the end of the 'isset($_GET... I needed to take the semi-colon off.
Hi Alan,
I have a problem where the debug message showing the contents of the $page array won't go away when I've gone to the '...&page=1' url. Im sure these lines are okay, but could you give them a glance over? cheers p.s. I'm at part 16 in the tutorial,
This is my index.php