kiwipenguin
09-16-2003, 04:55 AM
Hi there
I've written a small PHP module that pulls information out of a mySQL database to display sports results on a webpage. I've got just about everything I need out of it, but I'd like to limit the results to those with a date within the last 2 weeks.
Here's my SQL query
SELECT * FROM Sport WHERE Game='$array' ORDER BY Date DESC
There's a field named "Date" in the table, how do I limit the results from this?
I've written a small PHP module that pulls information out of a mySQL database to display sports results on a webpage. I've got just about everything I need out of it, but I'd like to limit the results to those with a date within the last 2 weeks.
Here's my SQL query
SELECT * FROM Sport WHERE Game='$array' ORDER BY Date DESC
There's a field named "Date" in the table, how do I limit the results from this?