11.03.2013, 10:54
Код:
"SELECT *, UNIX_TIMESTAMP(Expire) AS expire_unix FROM vips WHERE Vipas = '%s'"
However, even better solution is this (for advanced users):
Код:
DELETE FROM vips WHERE Vipas='%s' AND NOW() >= Expire
"SELECT *, UNIX_TIMESTAMP(Expire) AS expire_unix FROM vips WHERE Vipas = '%s'"
DELETE FROM vips WHERE Vipas='%s' AND NOW() >= Expire