I am fairly new to php and I am having a problem with an if statement. I tried what I saw on this site from other posts but can't seem to get it to work right. Here is my statement...
if ($cPath_new == '34') {
$categories_string .= tep_href_link(FILENAME_CHECK, $cPath_new);
$categories_string .= '">';
} else {
$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new);
$categories_string .= '">';
}
When I get to the variable $cPath_new and it is 34 it doesn't do what I want it to do, which is basically redirect it to another link then the default one. I goes straight to the default page. Any help would be appreciated.
Dylan