if (isset($_GET['id'])) {
$movie_id=$_GET['id'];
$sql="SELECT * FROM movies WHERE movie_id='$movie_id'";
$run_sql=mysqli_query($connect,$sql);
while ($row=mysqli_fetch_assoc($run_sql)) {
$id=$row['movie_id'];
$name=$row['Name'];
$desc=$row['Description'];
echo "<div id='breadcrumb'><a href='index.php'>Home</a> > <a href='movies.php'>Movies</a> $name</div>
<div id='description'>
<h1>$name</h1>
<p>$desc</p>";
}
}
this is the code and its shows nothing except the url ID which is passing through GET no other details are showing no errors either ,
$name
$desc
";} } }