Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing what is dispayed depending on the page


summitsource

Recommended Posts

Hey gang,

 

I need to have different boxes displayed depending on which page is loaded. I use to do it with an if and else but can not remember how, its been a while since ive worked with php and OSCommerce. Can anyone help.

 

TIA

Steve :!:

Link to comment
Share on other sites

Here is an example of what im trying to do, if on index.php display these links otherwise display the original links in the headernavigation. what am i missing.

 

<?php

if (substr == index.php) {

?>

<td class="headerNavigation">different links</td>

<td align="right" class="headerNavigation">different links</td>

<?php

} else {

?>

<td class="headerNavigation">original links<td>

<td align="right" class="headerNavigation">original links<td>

<?php

}

?>

 

TIA

Steve

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...