I am getting error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1" on running my php script.
My SQL Syntex is:
$query = "SELECT (movie_name,movie_year,movie_director,movie_leadactor,movie_type,movie_running_time,movie_cost,movie_takings) FROM movie WHERE movie_id= " . $_GET['movie_id']; $result = mysql_query($query, $db) or die(mysql_error($db));
I have searched a lot on web, but didn't get any descriptive answer. Why It was happening, what shortcommings are in my code.
Please provide a simple solution, that is easy to understand. Thanks in Advance.