I'm trying to design a website but running into a problem. I've been using tables in MySQL named in the format (year_month_date) so today would be 2009_01_25. Problem is, strtotime("2009_01_25") won't return a proper timestamp. I changed some tables over to the format (year-month-date) which works fine with strtotime(), however now all my MySQL queries are broken. Is there something about using a table name like 2009-01-25 that would break MySQL queries?
I'm sure I could use both formats and use preg_match to swap back and forth, but I'd rather not complicate things and add the additional overhead.
EDIT: I'm playing around with a few things now and it seems changing the table format to (yearmonthdate) ie: 20090125 works fine with both strtotime() and the table names, but I think the 2009-01-25 makes for a much cleaner, easier to read url if it can be used.
I'm sure I could use both formats and use preg_match to swap back and forth, but I'd rather not complicate things and add the additional overhead.
EDIT: I'm playing around with a few things now and it seems changing the table format to (yearmonthdate) ie: 20090125 works fine with both strtotime() and the table names, but I think the 2009-01-25 makes for a much cleaner, easier to read url if it can be used.