Let say i have querry structured like below which indicates dates
search.asp?date=091210
I want to find each record that includes "0912" string how can i inquire it on the link structure.
Let say i have querry structured like below which indicates dates
search.asp?date=091210
I want to find each record that includes "0912" string how can i inquire it on the link structure.
Indeed, never trust anything that is given on a URL. What you should do, is parse the date variable and split it up in a month, day and year part. Be sure to do the necessary sanity checks. Then you can issue a query like: SELECT * FROM yourTable WHERE MONTH(dateColumn) = month AND YEAR(dateColumn) = year