this has been killing me for a couple days, I wrote this up for my link box to switch out for when clients have items in there shopping cart, if they have items in there cart , then it displays checkout, if they dont then it displays my cart in the link. everything works great, but for some reason when it defaults to my cart, it adds about 5 spaces to the front of My cart and it then out of allignment. anyone have ideas as to why?
appreciate it any tips or insights, thanks!
<tr> <td align="center" valign="middle"><img src="images/common/sublinkbox.gif" width="15" height="15"></td>
<td class="navsub" align="left"><a href="<? echo $SSL ?>?page=checkout_1&session_id=<? echo $session_id ?>">
<? if ($cart != 0) { ?>
Checkout</a>
<? } else {?>
<a href="<? echo $NSL ?>?page=cart&session_id=<? echo $session_id ?>">
My Cart
<?}?>
</a> </td>
</tr>