include statement doesnt work
Posted by: tehno (---.dsl.pltn13.pacbell.net)
Date: July 17, 2007 04:59AM

hey i am having trouble getting the include statement or require statement to work

<?php
if($page == ""winking smiley
{
include "content/home.php";
}else{
include "content/$page.php";
}

?>

can anybody tell me an alternative or how to fix this? thank you



Post Edited (07-17-07 05:16)

Options: ReplyQuote
Re: include statement doesnt work
Posted by: yfastud (---.mia.bellsouth.net)
Date: July 17, 2007 05:14AM

Not sure it's a typo here or it's actually in your code, but the first line supposes to be <?php instead <?pho

Have fun,

[www.jlbn.net] (Basic Guide for WAMP)

Options: ReplyQuote


Sorry, only registered users may post in this forum.