Hola Sonia, las variables entre comillas simples no se expanden, puedes cambiar la sintaxis:
Código PHP:
Ver original$sql = 'Select RecB_Rec_Cod,Rec_Ori,Rec_Dest,RecB_Hora,RecB_Fecha,RecB_CupoUso
From recorrido,recorridobus
where Rec_Ori="$Origen"
and Rec_Dest="$Destino"
and Rec_Cod=RecB_Rec_Cod
and RecB_Hora="$Horai"
and RecB_Fecha="$fechai"';
o tambien:
Código PHP:
Ver original$sql = "Select RecB_Rec_Cod,Rec_Ori,Rec_Dest,RecB_Hora,RecB_Fecha,RecB_CupoUso
From recorrido,recorridobus
where Rec_Ori='{$Origen}'
and Rec_Dest='{$Destino}'
and Rec_Cod=RecB_Rec_Cod
and RecB_Hora='{$Horai}'
and RecB_Fecha='{$fechai}'";
Saludos,