Ok well I am trying to make another little PHP script that will take when a member was added to my site, and it will show them as Disabled until they have been on for 6 hours, and then when that 6 hours comes around they will be showed as Enabled....I have tried so many things, but I can't seem to get it to work....Ok my joined date time is a timestamp that I call from my DB ( so it is in a a timestamp format..well I have it to come out to look like this
[MYSQL="timestamp"]DATE_FORMAT(joined,'%Y %M %d at %l:%i %p')[/MYSQL]
and that comes out to look like this "2007 January 03 at 9:44 PM"...now from there I can't figure out a way to transform that date into time (so to speak) so i can put it together with the 6 hours...here is what I got as of right now ( it doesn't work but maybe you can tell me what I am doing wrong??)
$joined1 = mktime($joined);
$eligible = $joined*6;
$difference =($joined1-$eligible) ;
if($difference >= $joined1){
$eligibility = "Disabled";
}else{
$eligibility = "Enabled";
}
Then the $ eligibility is being called to the page...I have tried various date/time functions, but I can't seem to get any of them to work.
Any suggestions would be appreciated!!!!