Microsoft
Software
Hardware
Network
Question : Date and time span in MySQL
Hi,
I have a filed in my database table called 'newsdate' which contains a unix time of when a news Item is added. I have categorized my menu into Months of a year, so when a user selects $month=4 and $year=2009, I want to enter these two variables into an SQL statement which will return all articles that where entered on the 4th Month of 2009 for example. Can anyone tell me how I may achieve this please?
Thank you in advance
Answer : Date and time span in MySQL
You can use MONTH() and YEAR() functions in MySQL, so
SELECT * FROM table WHERE MONTH(newsdate) = 4 AND YEAR(newsdate) = 2010
Random Solutions
Network issue.
Excel 2007 Can Not Display Images From Web
Grub menu in not loading on ESXi 4
Mysql Query to select from two tables
What would be my excel formular to find the percentage of errors
Roaming Profiles in Windows 7 Pro and SBS 2008
Server 2008 R2 print server vs. XP clients
How can you search e-mail within Outlook 2010 and not use the index?
blueberries- only in NJ?
Display Chart in TextBox