13
i found out that when i run the following command
Quote:
UPDATE `table_name` set status =2 WHERE expdate
that makes the status of every new db entry including the ones i made today equal to 2, and takes them ofline!
Each time i add an entry i set
Quote:
$expdate = time() + (30 * 24 * 60 * 60);
to make the expiration date after 30 days
then in the sql statement i check if that date is less than the current time stamp and if it is yesterday for example take it offline! But the code doesnt seem to work! Any suggestions?? I just want to check if the expiration date is passed!