Thanks again.
Yes I have tried to use my code with http. And it works! But, the thing here is that I need to use it via https, because I require to implement the SSL security.
I am pasting the corresponding code to the blocks I previously shared. Appreciate much your support Chris! Hope someone else can help me from this point.
<?php
require("../../xpress/conex.php");
$sql=$conex->query("SELECT * FROM `tblogindrv` where usuario='".$_REQUEST['usuario']."' and password='".$_REQUEST['password']."'" );
//verifica si existe la consulta
if (!$sql) {
die('No se pudo conectar');
}
// verifica si tiene registro y si es asi mostrar los datos
if($row_cnt = $sql->num_rows>0){
$fila = $sql->fetch_array(MYSQLI_ASSOC);
echo $fila['nivel'];
echo ",";
$sql=$conex->query("UPDATE `tblogindrv` SET activo=1 WHERE usuario='".$_REQUEST['usuario']."' and password='".$_REQUEST['password']."'" );
echo "login ok";
}
else{
echo "error login";
}
/* liberar la serie de resultados */
$sql->free();
/* cerrar la conexión */
$conex->close();
?>