non e' chiaro il dilemma....
prova con CASE
codice:$query=("SELECT *, CASE when notti = 2 then 2 when notti = 3 then 3 when notti = 4 then 4 else 0 END as tipo FROM tabella");![]()
non e' chiaro il dilemma....
prova con CASE
codice:$query=("SELECT *, CASE when notti = 2 then 2 when notti = 3 then 3 when notti = 4 then 4 else 0 END as tipo FROM tabella");![]()
Il silenzio è spesso la cosa migliore. Pensa ... è gratis.