Ver original$valor = $_SESSION['aca_tienes_el_valor_a_comparar'];$sql = "SELECT dato FROM tabla WHERE campo = '$valor'";