Guest Posted April 4, 2007 Posted April 4, 2007 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.
kirikintha Posted April 4, 2007 Posted April 4, 2007 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
Guest Posted April 5, 2007 Posted April 5, 2007 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.