Sintaxe
Boa noite a todos!
Estou com um probleminha de sintaxe ou coisa parecida.
Tenho esta linha de código:
$texto1 = $reg["listings_properties.value"] where "listings_properties.id = listings.object_sid and listings_properties.complex_enum = 1";
$texto2 = $reg["listings_properties.value"] where "listings_properties.id = listings.object_sid and listings_properties.complex_enum = 2";
listings_properties.value é o valor que eu quero da tabela do DB, mas com a condição de listings_properties.complex_enum = 2 ou 1, conforme a variável $texto e listings_properties.id = listings.object_sid, não estou conseguindo fazer isto funcionar.
Alguém pode me ajudar?
kklo
Discussão (4)
Carregando comentários...