woody79 Posted September 5, 2007 Share Posted September 5, 2007 Would anybody know where i have gone wrong in this script? $tm7781=date ("d:m:Y H:i:s", mktime (date("H"),date("i"),date("s"),date("m"),date("d")-1,date("Y"))); mysql_query("DELETE FROM tracker WHERE endsession < '$tm7781'"); Quote Link to comment https://forums.phpfreaks.com/topic/68016-old-records/ Share on other sites More sharing options...
Yesideez Posted September 5, 2007 Share Posted September 5, 2007 1. Are you getting anything returned? 2. Have you tried to assign a variable your final MySQL query and see what it contains? Quote Link to comment https://forums.phpfreaks.com/topic/68016-old-records/#findComment-341915 Share on other sites More sharing options...
woody79 Posted September 5, 2007 Author Share Posted September 5, 2007 i have a feeling it is with the mktime Quote Link to comment https://forums.phpfreaks.com/topic/68016-old-records/#findComment-341917 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.