Gracias. Si, conozco el nombre de las tablas. Tengo entonces un array, y ejecuto esto, pero no reemplaza nada!:
Cita: foreach($tablas as $tabla){
$q = mysql_query("SELECT id, sections FROM $tabla");
while($section = mysql_fetch_array($q)){
$brs=preg_replace("/<br>/is","<br />",$section['sections']);
$query = mysql_query("UPDATE $tabla SET sections = $brs WHERE id = ".$section['id']);
}
}
Error:
Cita: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '