if(!empty($_POST['textocas'])){ $c="update basededatos Set txt='".addslashes($_POST['textocas'])."' where id='".(int)$_POST['ident']."' LIMIT 1"; }