Smiley function
Started on the old forum in November 2010 · view the original in the archive · old links redirect here
function getsmilies($text) { $sql = "SELECT * FROM ibwf_smilies"; $smilies = mysql_query($sql); while($smilie=mysql_fetch_array($smilies)) { $scode = $smilie[1]; $spath = $smilie[2]; $text = str_replace($scode,"<img src="$spath" alt="$scode"/>",$text); } return $text; }
pin0y likes wap