Fixxer Posted September 16, 2007 Share Posted September 16, 2007 Can someone fix my syntax? I sed this a while ago before I stopped doing web design. I know it looked exactly like this... in theory, the syntax is wrong. <?php if(!defined)$id then include(home.php); else include($id.php); ?> Quote Link to comment https://forums.phpfreaks.com/topic/69524-help-with-simple-php-script/ Share on other sites More sharing options...
pocobueno1388 Posted September 16, 2007 Share Posted September 16, 2007 <?php if (!isset($id)){ include 'home.php'; } else { include "$id.php"; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/69524-help-with-simple-php-script/#findComment-349346 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.