$consulta = "select * from autorizados where name='".$userid."' and password='".$password."' limit 1";