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); ?> 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"; } ?> 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
Archived
This topic is now archived and is closed to further replies.