Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

A Text Problem


Guest

Recommended Posts

I am trying to put the word 50% in my text. The percentage sign (%) will not show up. Does anyone know what I have to do to make it show up? I tried a backslash (\) but that didn't work.

Link to comment
Share on other sites

I am trying to put the word 50% in my text. The percentage sign (%) will not show up. Does anyone know what I have to do to make it show up? I tried a backslash (\) but that didn't work.

 

 

Where are you trying to do it? is it url encoding?

 

echo $myText .'%20%26';

 

or possibly

 

echo $myText .' %';

 

that should work

 

if you adding a % to something, it maybe looking for a variable like '%d' - this would not show the percent sign, it's a wild card character at that point.

Nothing unreal exists

Link to comment
Share on other sites

Tried those 2 but they deleted the text all together. Maybe I entered it wrong? Tried several versions. none worked.

Here is what I have:

define('TABLE_HEADING_NEW_PRODUCTS', 'Perfumes Discounted 50% or more!');

Here is what I see:

Perfumes Discounted 500r more!

Here is what I want to see:

Perfumes Discounted 50% or more!

 

 

 

 

Where are you trying to do it? is it url encoding?

 

echo $myText .'%20%26';

 

or possibly

 

echo $myText .' %';

 

that should work

 

if you adding a % to something, it maybe looking for a variable like '%d' - this would not show the percent sign, it's a wild card character at that point.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...