I am working on the following snippet of code for a dynamic sidebar section on (big johns auto service dot com) I seem to be getting a php error only in IE, all versions I believe. Does someone know why this is? I assume because of the " quotes around my divs based on the error message(Warning: Unexpected character in input: ‘’’ (ASCII=39) state=1 ). Is their something I could do to remedy this? I tried to use charcter set ($) but that did not work. I can’t figure out any other options. I don’t understand why IE is not cooperating. I hate you IE.
[php]<?php
if (stripos($_SERVER[‘REQUEST_URI’], ‘tire-service.php’)){
echo ‘
Did you Know?
That you should rotate your tires every 3000 miles for proper tire wear?
’;}
elseif(stripos($_SERVER[‘REQUEST_URI’], ‘brake-service.php’)){
echo ‘
Did you Know?
That your car or trucks front brakes are likely to wear out three times as fast as the rear brakes? Be sure to have a professional mechanic regularly inspect your brakes.
’;}
elseif(stripos($_SERVER[‘REQUEST_URI’], ‘transmission-service.php’)){
echo '
Did you Know?
That your car or truck should have its transmission service every 75,000 miles or risk never being able to have it serviced?
';}
elseif(stripos($_SERVER[‘REQUEST_URI’], ‘fuel-injection-service.php’)){
echo '
Fuel Injection Service
$79.99
Not Valid With
Other Coupons
View Print Page
}
elseif(stripos($_SERVER[‘REQUEST_URI’], ‘cooling-system.php’)){
echo '
Did you Know?
If your car or truck overheats you should immediately pull over and shut your car off or risk serious damage to your cars engine?
Coupon
Cooling System
Flush and Fill
$79.99
Not Valid With
Other Coupons
View Print Page
}
elseif(stripos($_SERVER[‘REQUEST_URI’], ‘electrical.php’)){
echo '
Coupon
FREE
Battery
Check
View Print Page
}
elseif(stripos($_SERVER[‘REQUEST_URI’], ‘auto-repair.php’)){
echo '<div id=“aside-1” class=“col”;>
Coupon
FREE Basic
Diagnostics
View Print Page
}
else{
echo ‘
}
';
?>
[/php]
Any ideas to help? I am very new to PHP, so the simplest suggestion is what I might be missing. The file above is included on the index.php with a simple include if that matters. I am using this as a dynamic sidebar section that pulls in before my aside right include. Thanks for any guidance