You will of course need to change the code he postet to match your own.
In your code you retrieve the blog from the database into a variable, well actually into an array.
What you want to do is something like this, but with your own code!
// Add this function to your code
function add_smile($str)
{
return str_replace(":)", "<img src=\"YOUR_IMG_DIRECTORY/smile.gif\">", $str);
}
// Your code
$data = mysql_query("SELECT column_name, column_name FROM table_name WHERE blabla = 'blabla'");
while($rs = mysql_fetch_array($data))
{
// Runs the function on the variable (replaces all the smilies
// with the image code.)
echo add_smile($rs['column_name']);
}
This is not straight out copy paste!