예제 #1
0
 public static function RequestPostClave($val)
 {
     $data = addslashes($_POST[$val]);
     $var = utf8_decode($data);
     $datos = Mysqli_Query::limpiarCadena($var);
     $encriptar = md5($datos);
     return $encriptar;
 }
예제 #2
0
<?php

include './class/config.php';
include './class/class_mysql.php';
$sql = Mysqli_Query::Eliminar('especialidades', "id='" . $_GET['id'] . "'");
if ($sql) {
    echo 'Bien';
}