I have the following record selection (thank you again r937):
This works great, but now they only want to pull records with events dates from today on forward.
I tried:
That throws an error:
line 109 is:
Can anyone tell me what I'm doing wrong?
Thank you!
Code:
$query = "SELECT event.eventdate
, event.eventtime
, venue.name
, venue.address
, venue.city
, venue.state
, venue.zip
, companyplan.company
, companyplan.plantype
FROM event
INNER
JOIN venue
ON venue.venueid = event.eventplaceID
INNER
JOIN companyplan
ON companyplan.planid = event.eventplanID
ORDER
BY event.eventdate
, event.eventtime
, venue.city
, venue.state";
This works great, but now they only want to pull records with events dates from today on forward.
I tried:
Code:
FROM event WHERE eventdate = DATE_SUB(CONCAT(CURDATE(), ' 00:00:00'), INTERVAL 1 DAY)
That throws an error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ... line 109
line 109 is:
Code:
while ($row = mysql_fetch_array($result)):
Can anyone tell me what I'm doing wrong?
Thank you!