Jump to content

[SOLVED] logical operator problem


Lassie

Recommended Posts

I need to display different aspects of a layout depending on which page the current page is.

I get a parse error with the following code. Where is my error please?

 


<?php $curentPage = basename($_SERVER['SCRIPT_NAME']);

if ($currentPage != 'index.php')&&($currentPage != 'checkout.php')
{//do something
}else{
do something else
}

Link to comment
https://forums.phpfreaks.com/topic/81039-solved-logical-operator-problem/
Share on other sites

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.