diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index 04dc050..bc62e6b 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -2284,8 +2284,8 @@ $link=Conectarse(); $sql_update_campos=mysqli_query($link,$consulta_update_campos); if($sql_update_campos){ - if (mysql_affected_rows($sql_update_campos)!='0'){ - $cantidad = mysql_affected_rows(); + if (mysqli_affected_rows($sql_update_campos)!='0'){ + $cantidad = mysqli_affected_rows(); $nombre = remplacetas('form_id','id',"$formulario",'nombre'," id_empresa = '$id_empresa'") ; } @@ -3837,7 +3837,7 @@ $respuesta = new xajaxResponse('utf-8'); $insertar = "INSERT INTO $tabla set $valores"; $sql=mysqli_query($link,$insertar); - if(mysql_affected_rows($link) != 0){ + if(mysqli_affected_rows($link) != 0){ } if($div !='') { @@ -6649,7 +6649,7 @@ $respuesta = new xajaxResponse('utf-8'); // $edit = "UPDATE $tabla SET $campo = '$valor' WHERE id = '$key' limit 1; "; $sql=mysqli_query($link,$insertar); $ultimo_id = mysql_insert_id(); - if(mysql_affected_rows($link) != 0){ + if(mysqli_affected_rows($link) != 0){ } if($div !='') { @@ -8895,7 +8895,7 @@ $respuesta = new xajaxResponse('utf-8'); mysqli_set_charset($link, "utf8"); $edit = "UPDATE $tabla SET $campo = '$valor' WHERE id = '$key' $accion limit 1; "; $sql=mysqli_query($link,$edit); - if(mysql_affected_rows($link) != 0){ + if(mysqli_affected_rows($link) != 0){ } if($div !='') { @@ -8914,7 +8914,7 @@ $respuesta = new xajaxResponse('utf-8'); $borrar = "DELETE FROM $tabla WHERE id = '$key' limit 1"; // $edit = "UPDATE $tabla SET $campo = '$valor' WHERE id = '$key' limit 1; "; $sql=mysqli_query($link,$borrar); - if(mysql_affected_rows($link) != 0){ + if(mysqli_affected_rows($link) != 0){ } if($div !='') { @@ -8940,7 +8940,7 @@ $respuesta = new xajaxResponse('utf-8'); $insertar = "INSERT INTO $tabla set $valores"; // $edit = "UPDATE $tabla SET $campo = '$valor' WHERE id = '$key' limit 1; "; $sql=mysqli_query($link,$insertar); - if(mysql_affected_rows($link) != 0){ + if(mysqli_affected_rows($link) != 0){ } if($div !='') { @@ -8970,7 +8970,7 @@ $respuesta = new xajaxResponse('utf-8'); $insertar = "INSERT INTO $tabla set $valores"; // $edit = "UPDATE $tabla SET $campo = '$valor' WHERE id = '$key' limit 1; "; $sql=mysqli_query($link,$insertar); - if(mysql_affected_rows($link) != 0){ + if(mysqli_affected_rows($link) != 0){ } if($div !='') { @@ -9055,7 +9055,7 @@ elseif($accion== "grabar"){ $edit = "UPDATE $tabla SET $campo = '".mysqli_real_escape_string($link,$valor)."' WHERE $id = '$key' limit 1; "; $sql=mysqli_query($link,$edit); - if(mysql_affected_rows($link) != 0){ + if(mysqli_affected_rows($link) != 0){ } $campo = editar_campo("$tabla","$key","$campo","$valor","","","$indice");