JC5 Posted October 29, 2007 Share Posted October 29, 2007 Hi all this is in an external function to run an "item" page... the code is $thumbs = common_get3ThumbsItem ( $item, $dir); $row = sprintf("<tr><td width='400' align='left' valign='top'>%s <br><br> %s</td> ". "<td width='400' align = 'left' valign='top'>%s</td> </tr>", $pic , $thumbs, $text ); my issue's are with the width... i'm trying to make it a percentage... as that is what the customer wants (and no this isn't my code i'm fixing... i'm just the guy hired to clean up the mess)... my question is does php4 (which is what is on the crappy hosting company's box... the guy who made the site likes to drag and drop into his template... he puts google ads on everything for which he gets paid... not to mention kick backs from hosting company) have a way to escape the % sign? i've tried it as <td width=\"95\%\", <td width='95\%' <td width=\"95%\" any suggestions to get this to work better? Thanks feel free to IM me zerocool69ny on aim Link to comment https://forums.phpfreaks.com/topic/75155-issues-wphp-escape-character/ Share on other sites More sharing options...
kenrbnsn Posted October 29, 2007 Share Posted October 29, 2007 Why do you think you have to escape the "%" character? Ken Link to comment https://forums.phpfreaks.com/topic/75155-issues-wphp-escape-character/#findComment-380098 Share on other sites More sharing options...
cyber_ghost Posted October 29, 2007 Share Posted October 29, 2007 try this.... width="<? echo "90\%";?>" Link to comment https://forums.phpfreaks.com/topic/75155-issues-wphp-escape-character/#findComment-380101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.