asi:
Código PHP:
<table width="250" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td>Nombre: <?php echo $row["nombre"]; ?></td>
</tr>
<tr>
<td>E-mail: <?php echo $row["email"]; ?></td>
</tr>
<tr>
<td>Página Web: <?php echo $row["web"]; ?></td>
</tr>
<tr>
<td>Mensaje:<?php
<?
$mensaje=$row['mensaje'];
$array_smiles=array(":adios :"=>"imagen_adios.gif",":nose :"=>"nose.gif");
// Para luego hacer algo típo:
foreach ($array_smiles as $smile=>$grafico){
$mensaje=str_replace($smile,"<img src=\"$grafico\">",$mensaje);
}
echo $mensaje;
?></td>
</tr>
</table>