potresti fare nella SELECT
e poi nel confronto:codice:select *, UNIX_TIMESTAMP(inizio) as start, UNIX_TIMESTAMP(fine) as stop from tabella ....
codice:if ( TIME() >= $row['start'] AND time() <= $row['stop']) { $live = "live ora"; } else { $live =""; }