ciao a tutti
mi trovo in questa situazione dati sulla 1° tabella e campo per il quale devo ordinarli sulla 2° tabella, ho fatto una cosa del genere:
però non mi funziona mi dice:codice:$querytotale="SELECT o.* FROM offerte o WHERE ((o.data >= date_sub(now(), interval $period $val)) AND (o.chiusa='no')) ,
Mysql dice: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' anagrafe a (o.linkcliente=a.id) order by a.ragione_sociale' at1064
perché, dove sbaglio???
grazie mille