<?php include '../../../config.php'; $idR = segcon($conexion, $_POST['fbd']); $esT = segcon($conexion, $_POST['a']); if ($idR == "" || $esT == "0" || $esT == "") { echo "1"; } else { $modificar = "UPDATE inmuebles set estd_inm='{$esT}' where cod_inm={$idR}"; $conexion->query($modificar) or die(mysqli_error()); echo "2"; }
<?php include '../../../config.php'; $idR = segcon($conexion, $_POST['fb']); $esR = segcon($conexion, $_POST['es']); if ($idR == "" || $esR == "0" || $esR == "") { echo "1"; } else { $modificar = "UPDATE usuarios set estd_us='{$esR}' where id_us={$idR}"; $conexion->query($modificar) or die(mysqli_error()); echo "2"; }
include '../../../config.php'; session_start(); if (isset($_SESSION['adm'])) { $idradd = $_SESSION['adm']; $datadm = "SELECT * from administrador where id_adm={$idradd}"; $sql_adm = $conexion->query($datadm) or die(mysqli_error()); while ($ad = $sql_adm->fetch_assoc()) { $usad = $ad['user_adm']; $tpad = $ad['tp_adm']; } //num_rows $idR = segcon($conexion, $_POST['pyid']); $a = segcon($conexion, $_POST['nampy']); $b = segcon($conexion, $_POST['latpy']); $c = segcon($conexion, $_POST['logpy']); $d = $_POST['txpy']; $hoy = date("Y-m-d"); if ($idR == "" || $a == "") { echo "<script type='text/javascript'>"; echo "alert('id o nombre de proyecto en blanco');"; echo "var pagina='../proyectos';"; echo "document.location.href=pagina;"; echo "</script>"; } else { $modificar = "UPDATE proyectos set nam_py='{$a}',text_py='{$d}',lat_py='{$b}',\n\t\t\t\tlog_py='{$c}' where id_py={$idR}"; $conexion->query($modificar) or die(mysqli_error()); echo "<script type='text/javascript'>"; echo "alert('Proyecto modificado');"; echo "var pagina='mopdif_py.php?py={$idR}';"; echo "document.location.href=pagina;";
<?php include '../../../config.php'; $idR = segcon($conexion, $_POST['fid']); //id usuario $a = segcon($conexion, $_POST['a']); //nombre contacto $b = segcon($conexion, $_POST['b']); //Numero de contacto if ($idR == "" || $a == "" || $b == "") { echo "1"; } else { $ingresar = "INSERT into otros_cont(us_id,nam_cont,num_cont) values({$idR},'{$a}','{$b}')"; $conexion->query($ingresar) or die(mysqli_error()); echo "2"; }
<?php include '../config.php'; $a = segcon($conexion, $_POST['a']); //nombres $b = segcon($conexion, $_POST['b']); //apellidos $c = segcon($conexion, $_POST['c']); //correo $d = segcon($conexion, $_POST['d']); //telefono $nombreComp = $a . " " . $b; $hoy = date("Y-m-d"); function rand_code($chars, $long) { $code = ""; for ($x = 0; $x <= $long; $x++) { $rand = rand(1, strlen($chars)); $code .= substr($chars, $rand, 1); } return $code; } if ($a == "" || $b == "" || $c == "") { echo "1"; } else { $existe = "SELECT * from usuarios where cor_us='{$c}'"; $sql_existe = $conexion->query($existe) or die(mysqli_error()); $numero = $sql_existe->num_rows; if ($numero > 0) { echo "2|0"; } else {
<?php include '../../../config.php'; $a = segcon($conexion, $_POST['a']); //nombres apellidos $b = segcon($conexion, $_POST['b']); //cedula $c = segcon($conexion, $_POST['c']); //correo $d = segcon($conexion, $_POST['d']); //telefono $e = segcon($conexion, $_POST['e']); //celular $f = $_POST['f']; //direccion $g = segcon($conexion, $_POST['g']); //mas numeros $hoy = date("Y-m-d"); function rand_code($chars, $long) { $code = ""; for ($x = 0; $x <= $long; $x++) { $rand = rand(1, strlen($chars)); $code .= substr($chars, $rand, 1); } return $code; } if ($a == "") { echo "1"; } else { if ($c == "") {