Jump to content

[SOLVED] unexpected T_BOOLEAN_OR (about to crazy!) Please help!


sean14592

Recommended Posts

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';
		}
		?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.