Jump to content

php echo problem


Pavlos1316

Recommended Posts

Hello,

 

I have this syntax on my header div

<p><a href="javascript:ajaxpage('shopcart.php', 'content');" class="difflink"><img src="../stock_photos/shopcart.png"><?php echo '<span class="text">'.writeShoppingCart().'</span>'; ?></a></p>

 

but whatever I try it always output my echo in the next line instead of next to my picture file.

 

How can I do it displayed at the same line?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/233787-php-echo-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.