Chris
What are the actual page names
ie is it
The Gadget Shop_deals.html
The_Gadget_Shop_deals.html
the_gadget_shop_deals.html
Assuming $remcompany contains The Gadget Shop
for the first one you want
Code:
echo '<tr><td><a href="'. urlencode($remcompany) . '_deals.html">'.$remcompany.' Deals</a></td></tr>';
for the second one you want
Code:
echo '<tr><td><a href="'. str_replace(" ","_",$remcompany).'_deals.html">'.$remcompany.' Deals</a></td></tr>';
and for the third one you want
Code:
echo '<tr><td><a href="'.strtolower(str_replace(" ","_",$remcompany)).'_deals.html">'.$remcompany.' Deals</a></td></tr>';