|      Respuesta: Urgente, problema al querer grabar esta palabra        $barriofirmante = trim($_POST['barriofirmante']); 
	$barriofirmante = strtoupper($barriofirmante);	 
	$barriofirmante = htmlentities($barriofirmante, ENT_QUOTES); 
	$barriofirmante = addslashes($barriofirmante); 
    $tel1 = $_POST['tel1']; 
	if ($tel1 == null) 
	{ 
	$tel1=0; 
	$error=1; 
	} 
	$tel2 = $_POST['tel2']; 
	if ($tel2 == null) 
	{ 
	$tel2=0; 
	} 
    $fax = $_POST['fax']; 
	if ($fax == null) 
	{ 
	$fax=0; 
	} 
	$mail= $_POST['mail']; 
    $cel1= $_POST['cel1']; 
	$cel2= $_POST['cel2'];     
	$localidad= $_POST['ciudades']; 
	if ($localidad == null) 
	{ 
	$localidad=0; 
	} 
	// asignar region automaticamente 
	$region = substr($localidad, 0, 2); 
	if ($region == null) 
	{ 
	$region=0; 
	} 
	$actividad= $_POST['acti']; 
	if ($actividad == null) 
	{ 
	$actividad=0; 
	} 
	$ano = $_POST['ano']; 
	$mes = $_POST['mes']; 
	$dia = $_POST['dia']; 
	$fechanac = "$dia".""."$mes".""."$ano"; 
	if ($fechanac == null) 
	{ 
	$fechanac =0; 
	} 
	if($fechanac==19000000){ 
	$error=1; 
	} 
	$fechanac2 = "$dia"."/"."$mes"."/"."$ano"; 
	$cartaley= $_POST['cartaley']; 
	if ($cartaley == null) 
	{ 
	$cartaley=0; 
	$error=1; 
	} 
	$sexo = $_POST['sexo']; 
	if ($sexo == null) 
	{ 
	$sexo=0; 
	} 
	$pais = $_POST['paises']; 
	if ($pais == null) 
	{ 
	$pais=0; 
	} 
	$estado = $_POST['estados']; 
	if ($estado == null) 
	{ 
	$estado=0; 
	} 
	$vinculo= $_POST['vinculos']; 
	if ($vinculo == null) 
	{ 
	$vinculo=0; 
	$error=1; 
	} 
	$cargo= $_POST['cargo']; 
	if ($cargo == null) 
	{ 
	$cargo=0; 
	} 
	$profesion = $_POST['profesion'];	 
	$lugartrabajo = $_POST['lugartrabajo'];	 
	$lugartrabajo = strtoupper($lugartrabajo); 
	$dirlaboral = $_POST['dirlaboral'];	 
	$dirlaboral = strtoupper($dirlaboral); 
	$telaboral = $_POST['telaboral']; 
	$faxlaboral = $_POST['faxlaboral']; 
	$director = $_POST['director']; 
	if ($director == null) 
	{ 
	$director=0; 
	} 
	$accionista = $_POST['accionista']; 
	if ($accionista == null) 
	{ 
	$accionista=0; 
	} 
	$casilla = $_POST['casilla']; 
	$comentario = $_POST['txtaccionista']; 
	if ($comentario == null) 
	{ 
	$comentario= ""; 
	} 
	$fecha = date("Ymd"); 
	$hora = date("H:i:s");     
	include('conectar_AS.php'); 
		$insertar = "insert into RIESGO.FRIEPC02 (PRNUSE, PTIPDO, PIDEN1, PPRIAP, PSEGAP, PCASAP, PPRINO, PSEGNO, PSEXO, PNACIO, PFNACI, PECIVI, PDOMIC, PTELEF, PFAX, PREGIO, PCCORR, PLOCAL, PACTIV, PRPROF, PRLUGT, PRCARG, PRDIRL, PRTELA, PRFAXL, PRDIRE, PRACCI, PRCARL, PRBARR, PRTELE, PRCEL1, PRCEL2, PRCORE, RTIPRE, PFNAC1, PRUSUA, PRHORA, PRFECH) VALUES ('$nsecu', '$tipodocu', '$nrodocumento', '$primerape', '$segape', '$apecasa', '$prinom', '$segno', '$sexo', '$pais', '$fechanac', '$estado', '$dirfirman', '$tel1', '$fax', '$region', '$casilla', '$localidad', '$actividad', '$profesion', '$lugartrabajo', '$cargo', '$dirlaboral', '$telaboral', '$faxlaboral', '$director', '$accionista', '$cartaley', '$barriofirmante', '$tel2', '$cel1', '$cel2', '$mail', '$vinculo', '$fechanac2', '$user', '$hora', '$fecha')";   
$puta = odbc_exec($cn, $insertar) or die (odbc_error());   
esta es la sentencia completa, pero  el error es solo en barriofirmane, si escribo asi: OLEARY pasa sin problemas           |