Hi guys,
How do I insert into a database table the previous day's date?
e.g. Today is Thursday the 25th but I want Wednesday's date to be inserted.
How is this done?
$query = "INSERT INTO $table (name, size, type, content, file_date) ".
"VALUES ('$fileName', '$fileSize', '$fileType', '$content', NOW())";
Database date field: file_date(date)