Hi
I'm fairly new to php and mysql and I'm trying to get the following SQL query to from my php page.
$query = "SELECT DateTime, ShowTitle, Available FROM show WHERE DateTime >= now()";
$result = mysql_query ($query)
or die ("Couldn't execute query. $query");
However, everytime I load this page I get the following error:
Couldn't execute query. SELECT DateTime, ShowTitle, Available FROM show WHERE DateTime >= now()
I originally thought this was a fairly simple page to do as all it does is show forthcoming shows. Therefore this query just checks the database and displays any show on or after the current date.
I've been trying to get this to work for a couple of days now and I'm going a little insane cos of it.
Any help would be much appreciated.