I plan on using this (not just :D, other smilies to ) on input from a form that is stored in a database then shown in a *comments* section.PHP Code:<?php
$bodytag = str_replace("$text", "[noparse]:D[/noparse]", "<img src="../Images/grin.png" alt="Grin" />");
?>
Should I run this when inserting it into the database, or when displaying it to the user (after reading it from the database).
Thanks Keyboard1333
P.s. YAY 500th POST!!!

