I am trying to submit a query from a site to retrieve certain records from a MySQL db. When I execute the query from the site form, I get the mysql_error() return of 'Invalid query: Query was empty' when I know it's not empty.
$Level = $_POST['level'];
$Year = $_POST['year'];
$Name = $_POST['name'];
$Award = $_POST['award'];
$query = mysql_query("SELECT *
FROM wineawards
WHERE LEVEL = $Level
OR YEAR = $Year
OR name = $Name
OR award = $Award
");
$result = mysql_query($query);
Not sure if I am missing something here, or typing something wrong?