public static function RequestPostClave($val) { $data = addslashes($_POST[$val]); $var = utf8_decode($data); $datos = Mysqli_Query::limpiarCadena($var); $encriptar = md5($datos); return $encriptar; }
<?php include './class/config.php'; include './class/class_mysql.php'; $sql = Mysqli_Query::Eliminar('especialidades', "id='" . $_GET['id'] . "'"); if ($sql) { echo 'Bien'; }