pass value from textbox in sql query in php
<p>so, i am trying to display the value of movie_id using movie name by getting the name from textblock(html). But the page displayed is blank and if i add a name manually in the query e.g name="skyfall" instead of the variable the result is displayed. 
    

<pre><code>include './connection.php';

$movie_tf=$_POST['movie_tf'];

$getMovieIdQuery="SELECT movie_id FROM MOVIE WHERE name='$movie_tf'";
$query=  mysql_query($getMovieIdQuery);

if (!$query){
    echo 'error' .  mysql_error($dbconn);
}

    $getMovieIdQueryFetchRow=  mysql_fetch_row($query);
    echo $getMovieIdQueryFetchRow[0];


mysql_close($dbconn);
</code></pre>

<p>html form:</p>

<pre><code>&lt;form action="operations.php" method="GET"&gt;
            Movie:&lt;input type="text" name="movie_tf"/&gt; &lt;/br&gt;
            &lt;input type="submit" value="submit"/&gt;
        &lt;/form&gt;
</code></pre>