Bueno es que puse esto:
<?
include ("conecta.php");
$texto = $_POST["texto"];
$color = $_POST["color"];
$texto = htmlentities($texto, ENT_QUOTES);
$texto = str_replace("[b]","[b]", $texto);
$texto = str_replace("[/b]","[/b]", $texto);
$texto = str_replace("[i]","[i]", $texto);
$texto = str_replace("[/i]","[/i]", $texto);
$texto = str_replace("[negro]","<font color=#000>", $texto);
$texto = str_replace("[/negro]","</font>", $texto);
$texto = str_replace("[rojo]","<font color=#FF0000>", $texto);
$texto = str_replace("[/rojo]","</font>", $texto);
$texto = str_replace("[verde]","<font color=#088A08>", $texto);
$texto = str_replace("[/verde]","</font>", $texto);
$texto = str_replace("[amari]","<font color=#FFFF00>", $texto);
$texto = str_replace("[/amari]","</font>", $texto);
$texto = str_replace("\r\n", "
", $texto);
$texto = str_replace("
", "</p>
", $texto);
$color = str_replace("<div id=bloque>","<table><td>", $color);
$intro = mysql_query("INSERT INTO anuncios (bloque, color)
values ('$texto','$color')")or die('Error en tabla');
$intro = mysql_query ("SELECT * FROM anuncios ORDER BY id DESC LIMIT 1;") ;Y aqui va el resto de :$intro = mysql_query ("SELECT * FROM anuncios ORDER BY id DESC LIMIT 1;") ;
if ($row = mysql_fetch_array($intro)){
echo "<table style='border:red 1px solid'> \n";
echo "<tr> \n";
echo "<td class='a'>su bloque</td></tr> \n";
echo "</table> \n";
echo "
\n";
do {
echo "<div id='bloque'> \n";
echo "<table> \n";
echo "<tr> \n";
echo "<td>".$row["bloque"],$color. "</td></tr> \n";
echo "</table> \n";
}
while ($row = mysql_fetch_array($intro));
echo "<table> \n";
echo "</table> \n";
echo "</div> \n";
}
else {
echo "¡ La base de datos está vacia !";
}
?>¿Está bien? ¿no?