Jump to content

Very Frustrating Space After MySQLi Echo


justlukeyou

Recommended Posts

Hi,

 

I have been trying my hand at MySQLi but I have noticed a frustrating space appears after the echo.

 

The below code adds a space between the discount and the percentage sign so it appears as 32 % instead of 32%.

 

I have tried removing all the spaces in the code but it still appears. Can anyone advise how to remove this space?

 

Save <?php printf("%s\n",$row["discount"]);?>%<br />

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.