Select Date from MySQL using PHP - Need PHP add 10 days to date, keep MySQL date format, update MySql table with new Date in correct format
Using PHP and MySQL, have a table that has a field with the DATE data type. Hence all records have a format similar to 2008-05-24. Using PHP I can select the date from the mysql table and assign it a variable ($date_old). Then, using PHP I need to add 10 days to the date and assign the new date to a new variable $date_new. How do I do this and preserve the format.
So if $date_old = '2008-05-24', I need $date_new = '2008-06-03'
How can I do this using PHP? If I cant use PHP, how can I do this using something compatible with PHP and MySQL?
PHPWeb ApplicationsMySQL Server
8/22/2022 - Mon
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.