Code not working

can anyone tell me why this code isn’t working?

<?php 

include("../connection.php"); 

$user_id = $_GET['edit_movie_id'];
echo $user_id;

$result = mysql_query("SELECT * FROM  Movies WHERE  id = $user_id");

$row = mysql_fetch_array($result);
echo $row['title'];


?>