ho questa tabella per gli utenti bannati
Codice PHP:
-- ------------------------------------------------------
-- 
Tabella utenti bannati
-- ------------------------------------------------------
CREATE TABLE `bans` (
    `
ban_uidint(10unsigned NOT NULL default '0',
    `
ban_reasontext,
    `
ban_timedatetime NOT NULL default '9999-12-31 23:59:59',

    
PRIMARY KEY (`ban_id`)
TYPE=MyISAM
Dove:
ban_uid = l'user id dell'utente bannato
ban_reason = la motivazione del banned
ban_time = l'utente rimarrà bannato fino al: xxxx-xx-xx xx:xx:xx

Quind una volta estratte tutte le colonne datalla tabella "bans" ed aver estratto "l'id dell'utente" come faccio a controllare che il tempo attuale sia maggiore/minore di quello del ban?

grazie