I keep getting this 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 'ON=‘2011-000’, C=‘U’, SC=‘2’, NC=‘Julio Figue’ at line 3
My query is:
<?php include "connection.php"; if(!isset($_POST["submit"])) { $q = "SELECT * FROM Invoices WHERE ID = $_GET[id]"; $result = mysql_query($q); $person = mysql_fetch_array($result); } where is the error here??