whats the code to make text thats coming out of a DB with things like 🙂 and 😛 being turned into the grapic counter parts, basicly
:) = <img src="smile.gif"> :P = <img src="tounge.gif">
etc etc etc
Pull the text into a variable and where you wish to display the image try some thing like
<?php
if ($variable == "🙂") { print "<img src='smile.gif'>"; } else if ($variable == "😛") { print "<img src='tounge.gif'>"; }
?>
if the variable $text has the text in it from the db, use str_replace for smilies etc
$text=str_replace(":)","<img src=\"smile.gif\" border=\"0\">",$text);
etc