...

View Full Version : Outputting characters



stfc_boy
08-13-2008, 03:42 PM
Hi All,

Wondering if anyone could help me. I have a piece of code which outputs data from a field in my database, but something like the word:

Side's

Comes out as:

side’s



<?
$aParagraphs = explode("\n", nl2br($body_text));
echo '<span style="font-weight:bold;font-size:120%;">' . htmlspecialchars_decode($aParagraphs[0]) . '</span>';
for ($i=1; $i < count($aParagraphs); $i++) {
echo '<span style="font-size:120%;">' . htmlspecialchars_decode($aParagraphs[$i]) . '</span>';
}
?>

Fumigator
08-13-2008, 04:48 PM
How does that apostrophe get phsyically stored in your table?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum