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.
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);
html form:
<form action="operations.php" method="GET">
Movie:<input type="text" name="movie_tf"/> </br>
<input type="submit" value="submit"/>
</form>