Tebgo el siguiente problema, en un secuencia sql sencilla me salta el siguiente 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
la secuencia es:
Código SQL:
Ver original$sql = "SELECT * FROM restaurante WHERE id=" . $_POST["id"];
$result=mysql_query($sql,$link) OR die (mysql_error());
IF (($row=mysql_fetch_array($result))) {
Nose donde esta el fallo, podrian ayudarme??