Originariamente inviato da boots
Così come fai tu, non viene fatto l'escape dei parametri.
Dovresti far così:

Codice PHP:
$query 'UPDATE pagine SET testo = :testo WHERE nome LIKE :nome';   
try{
    ...
    
$stmt->bindParam(':testo'$_POST['testo']); 
    
$stmt->bindParam(':nome'$_POST['nome']); 
    
$stmt->execute(); 
    
$result $db->commit(); 

Purtroppo mi da ancora
codice:
Errore: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server