Ciao ragazzi,
ho la seguente query:
vorrei aggiungere una condizione tipo:Codice PHP:$query = "SELECT DISTINCT fatturazione_corsisti.id_corso_programmato, corso_programmato.id_corso FROM fatturazione_corsisti
LEFT JOIN corso_programmato ON fatturazione_corsisti.id_corso_programmato = corso_programmato.id
WHERE corso_programmato.effettuato = '1'
AND corso_programmato.chiuso = '0'
AND corso_programmato.annullato = '0'
AND fatturazione_corsisti.stato_fatturazione = '".$stato_fatturazione."'
";
"e NON esistono record con fatturazione_corsisti.stato_fatturazione = '1'"
come si fa?
Grazie![]()

Rispondi quotando