ok i have a shoutbox system i wrote at www.sk8bstoke.co.uk/tomshoutbox which is workin fine except for one thing which is that there are 2 smilies which wont print... 1 is the 😃 and the other is 🙂 and i have no idea why can ne 1 help me??? heres the code for the smileys...
<?php
//SMILEY SET
$smileyimageroot = "images/";
$replacementb = "<img src=\"";
$replacemente = "\">";
$smiley[1] = "/:D/";
$image[1] = $replacementb . $smileyimageroot . "grin.gif" . $replacemente;
$smiley[2] = "/B)/";
$image[2] = $replacementb . $smileyimageroot . "cool.gif" . $replacemente;
$smiley[3] = "/:)/";
$image[3] = $replacementb . $smileyimageroot . "smile.gif" . $replacemente;
$smiley[4] = "/:p/";
$image[4] = $replacementb . $smileyimageroot . "smug.gif" . $replacemente;
$smiley[5] = "/:shy:/";
$image[5] = $replacementb . $smileyimageroot . "shy.gif" . $replacemente;
$smiley[6] = "/:dead:/";
$image[6] = $replacementb . $smileyimageroot . "dead.gif" . $replacemente;
$smiley[7] = "/:cry:/";
$image[7] = $replacementb . $smileyimageroot . "cry.gif" . $replacemente;
$smiley[8] = "/:mad:/";
$image[8] = $replacementb . $smileyimageroot . "angry.gif" . $replacemente;
ksort($smiley);
ksort($images);
?>
And heres the code for the preg_replace
$string = $query_data[1];
$shoutoutput = preg_replace($smiley, $image, $string);
echo "<tr><td><b>", $query_data[0], "</b> - ", $shoutoutput, "</td></tr>";