Hi All.
Im looking for some help in manipulating the date in Mysql and PHP. I dont have any code so ill try and explain it.
Im looking to use the date function to get todays date and use that as a starting point.
What i then need to do is create some code that uses that date to interact with stored dates in Mysql.
Basically i want to create some code that generates a report on last months stats.
Ive placed the select code below but im looking for some help in manipulating the date to one month ago.
////////////Get Todays Date///////////////////
$Date = date('Ymd');
$Newdate //////// Need This to be One month back///////////
$Selectid2 = "SELECT Credits FROM credits WHERE Username = '$Username' & Date = '$Newdate";
$Result3 = mysql_query($Selectid2);
Any ideas Thanks🙂