I'm exhausted.
I've been trying to do something that should be simple--using a string in a QUERY, but I keep getting this warning error messages. It's really driving me nuts.
I have a sports schedule database. I want to display all the games that are upcoming say next week. I set a string $nextweek to equal today + 7 days (basically). Then I tell run my search against the date field in the schedule against the $nextweek string.
It works, I get the results I want, but I also get this warning:
Warning: Unexpected character in input: ' in /home/sites/home/web/testing7.php on line 11
Here is the releveant code:
$nextweek = date("Y-m-d", mktime(0,0,0, date(m), date(d)+7,date(Y)));
$query = "SELECT * FROM sport WHERE event = 'EPL' and yymmdd < '$nextweek' ORDER BY yymmdd