sean14592 Posted October 13, 2008 Share Posted October 13, 2008 hi, ok, im getting this error Parse error: syntax error, unexpected T_BOOLEAN_OR in /home/USERNAME/public_html/DIRECTORY/index.php on line 94 Know I have realised that its to dow with the if statement, proberly something todo with the '||' , any ideas? <?php $pagesavail = array ('reg', 'oc', 'owners'); $var1 = sanitize($_GET['ty']); $var2 = sanitize($_GET['oc']); if (in_array($var1, $pagesavail)) || (in_array($var2, $pagesavail)) { include ("./".$var1."/".$var2.".php"); } else { echo 'error'; } ?> Link to comment https://forums.phpfreaks.com/topic/128211-solved-unexpected-t_boolean_or-about-to-crazy-please-help/ Share on other sites More sharing options...
sean14592 Posted October 13, 2008 Author Share Posted October 13, 2008 fixed! thanks anyway Link to comment https://forums.phpfreaks.com/topic/128211-solved-unexpected-t_boolean_or-about-to-crazy-please-help/#findComment-664017 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.