Question
If statement or Select Case?
Hi all,
I'm need to include a file named after the categories so a page called flyers.php is called when the category called "Flyers" is clicked.
then I tried using this code
if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
And then added it like this:
<td><?php
if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
echo include 'flyers.php';
}
?>
<!--/*<?php // include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>*/--></td>
But the problem I'm getting is, that nothing comes up on any of the categories, is there something i've missed?
Currently I have this:
<?php
//if ($current_categorie_id =='Flyers') {
echo include 'flyers.php';
//}
?>
But this only displays the file on the top most category: "Business Stationary"
Any help or ideas?
P.S I am using osCommerce. Sorry.
I'm need to include a file named after the categories so a page called flyers.php is called when the category called "Flyers" is clicked.
then I tried using this code
if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
And then added it like this:
<td><?php
if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
echo include 'flyers.php';
}
?>
<!--/*<?php // include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>*/--></td>
But the problem I'm getting is, that nothing comes up on any of the categories, is there something i've missed?
Currently I have this:
<?php
//if ($current_categorie_id =='Flyers') {
echo include 'flyers.php';
//}
?>
But this only displays the file on the top most category: "Business Stationary"
Any help or ideas?
P.S I am using osCommerce. Sorry.
