$registros=mysql_query("select TimePrint, nick, mensaje from tblMensajes ORDER BY IDMensaje DESC LIMIT 40",$conexion)
if ($mensaje!=''){ echo $mensaje; }