28rain Posted February 19, 2009 Share Posted February 19, 2009 I get this error when i change from this; <td valign=\"bottom\" halign=\"right\">$price</td> to; <td valign=\"bottom\" halign=\"right\">£$price</td> is there any way to surpass this or a solution? Thanks lots! Sorry special here forgot to say the error; Warning: Illegal or truncated character in input: offset 40 Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/ Share on other sites More sharing options...
Cal Posted February 19, 2009 Share Posted February 19, 2009 try <td valign=\"bottom\" halign=\"right\">£" . $price . "</td> Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/#findComment-766479 Share on other sites More sharing options...
Mchl Posted February 19, 2009 Share Posted February 19, 2009 What is the error? Try <td valign=\"bottom\" halign=\"right\">£{$price}</td> if it doesn't work, show some more code. Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/#findComment-766480 Share on other sites More sharing options...
28rain Posted February 19, 2009 Author Share Posted February 19, 2009 I put the error back in my start post. No neither of those work it still says the £ symbol is illegal... Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/#findComment-766483 Share on other sites More sharing options...
Cal Posted February 19, 2009 Share Posted February 19, 2009 what are you actually doing, printing it or what? Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/#findComment-766486 Share on other sites More sharing options...
sasa Posted February 19, 2009 Share Posted February 19, 2009 echo "<td valign=\"bottom\" halign=\"right\">£$price</td>"; Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/#findComment-766488 Share on other sites More sharing options...
28rain Posted February 19, 2009 Author Share Posted February 19, 2009 Erm well im adding it all to a variable... Heres the script; $display_block .= "<table width=800 columns=4 cellspacing=5 cellpadding=3 border=\"5\" bordercolor=\"orange\"> <tr> <td rowspan=\"2\"><img src=\"images/$picture\" width=\"10\" height=\"10\" align = \"center\"></td> <td Valign=\"top\" halign=\"left\"><a href = \"$id.html\"><strong> <font color=black size=5> $title</font> </strong></a></td><td valign=bottom> Gender: $sex </td> <td width=110 align= \"center\">$price</td> </tr> <tr> <td halign = \"left\">$brand</td> <td halign = \"center\">$notes</td> <td halign = \"right\" valign=\"bottom\"><font size=2> Ref number = $id</font></td> </tr> </table> <br> <br> "; Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/#findComment-766489 Share on other sites More sharing options...
28rain Posted February 19, 2009 Author Share Posted February 19, 2009 Thankyou very much sasa worked awesome! Is there a site with all the symbol functions? Thanks! Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/#findComment-766491 Share on other sites More sharing options...
Cal Posted February 19, 2009 Share Posted February 19, 2009 http://www.degraeve.com/reference/specialcharacters.php Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/#findComment-766493 Share on other sites More sharing options...
sasa Posted February 19, 2009 Share Posted February 19, 2009 google for 'html special characters' Link to comment https://forums.phpfreaks.com/topic/145997-solved-is-it-possible-to-add-symbols-without-the-php-breaking/#findComment-766495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.