I have a search box on my site ... mysql database. I am currently checking if the keyword search is a category or just a sentence that matches the name. I would like to improve this by indicating if the date is a search keyword, then he will know this and SELECT * messages related to that date. How to determine if it is a date or not? perhaps regex?
For your information, I use the standard format YYYY / MM / DD, for example, 2012/07/21.
sys_debug
source share