Guest Posted October 4, 2002 Share Posted October 4, 2002 Hi Can anyone teach me how to change the script in column_right.php so that the box that I created will only show in the Product Info Page and nowhere else. Ex. Product notification box only showed when at product detail page Thank you Link to comment Share on other sites More sharing options...
Ajeh Posted October 5, 2002 Share Posted October 5, 2002 You can add code such as this in your php to test the page. I have both tests as I do not know which works on your server: if ( (strstr($_SERVER['PHP_SELF'],'product_info.php')) or (strstr($_SERVER['PHP_SELF'],'product_info.php')) ) { // do this } else { // else do this } Link to comment Share on other sites More sharing options...
Ajeh Posted October 5, 2002 Share Posted October 5, 2002 Take two ... if ( (strstr($_SERVER['PHP_SELF'],'product_info.php')) or (strstr($PHP_SELF,'product_info.php')) ) { // do this } else { // else do this } Might be better if I had included two *different* tests :D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.