PHP error
Posted: Thu Dec 09, 2010 12:57 am
Hi Everyone,
Im new to php. I have written a code in php. While im running i got following error
Notice: Undefined index: movie_id in C:\wamp\www\Wamp_Test\movie_details.php on line 50
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
Error line code is
$query = "SELECT * FROM movie".
"WHERE movie_id =" . $_GET['movie_id'];
$result = mysql_query($query,$con) or die (mysql_error());
Pls anyone can help me on this.
Regards
Fayaz
Im new to php. I have written a code in php. While im running i got following error
Notice: Undefined index: movie_id in C:\wamp\www\Wamp_Test\movie_details.php on line 50
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
Error line code is
$query = "SELECT * FROM movie".
"WHERE movie_id =" . $_GET['movie_id'];
$result = mysql_query($query,$con) or die (mysql_error());
Pls anyone can help me on this.
Regards
Fayaz