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'; } ?> Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.