My usrcomments.dateadd column is set to 'datetime' (format:'2006-11-26 05:01:22') and llogin is set to 'int' with a limit of 10 digits (format:1176163100).
When I use the function time(); the result in llogin with it being set as an int column results with a value in the format of 1176163100. Is this value storing minutes and seconds? What kind of timestamp is this considered?
I'd like to leave my llogin as that type for now so I guess my question is how do I format 'usrcomments.dateadd' in my query to a format similar to what my function time(); is giving me for llogin?
$SQL= "SELECT UNIX_TIMESTAMP(usrcomments.dateadd),
usrcomments.MemberID, class_members.llogin,
class_members.MemberID FROM usrcomments, class_members where
usrcomments.MemberID = class_members.MemberID and
usrcomments.profid = '$a1[MemberID]' AND usrcomments.dateadd > llogin";
if(mysql_num_rows(mysql_query($SQL))>0){
$m = "profile=true&";
}