function insertComponente($tipo,$nombre,$id_soporte, $conexionID=NULL){
if($conexionID==NULL){
$this->conexionID=$this->conexionBBPAE();
}
$resultado = strtoupper($nombre);
// if($visible!=1){$visible=0;}
$query="INSERT INTO cat_componente (id_area,nombre,clasif)
values ($id_soporte,'$resultado',$tipo)";
//$query=utf8_decode($query);
//echo "$query CONEXION:::".$this->conexionID.":::<br>\n";
$return=$this->funcionInsertar($query, $this->conexionID);
if (!$return){
echo $error ="ERROR:: ".time().": ".mysql_error($this->conexionID).":".$query."\n";
$tmp=0;
}else{
$error ="";
$tmp=1;
}
$control=array($tmp,$error, $query);
return $control;
}
No hay comentarios:
Publicar un comentario