Hi All,
I have a page that gets the productID and then displays the correct path and concatenates the prodid to the end. The challenge is that one of the links needs to go to a different path.
So I made a if else loop to change the path for the special product. The challenge is that I can't seem to escape the href correctly.
Here is what I have in the code now:
and what I am trying to do is:
$RegularURL = '<a href=\"http://www.intheclassroom.com/cgi-bin/storefront.cgi?page=prod&prod=<?php echo($row['ProdID']); ?> target=\"_blank\">' ;
$SpecialURL = '<a href=\"http://www.intheclassroom.com/cgi-bin/storefront.cgi" target=\"_blank\">' ;
Then I can just :
if ($row['ProdID'] = 0) {
$URL = $SpecialURL ;
} else {
$URL = $RegularURL ;
}
and then echo $URL in the loop for the products.
Is that clear or confusing??
Thanks,
Don