location header syntax error
<p>Firstly, I got a database of which I labelled different id for different content. However, I also made a comment box, of which my comments are all numbered by id=1,2,3... so whenever I submit a comment, it is able to link it back to the correct id I got earlier (not the comment box id), i.e. if I entered in www.example.com/synopsis?id=1, I will go back there. However, I have a delete.php file which is linked to reload.php file, whereby the page is reloaded. From this, it is unable to go back to the synopsis?id=1, instead it's just synopsis?id= </p>

<p>Here is my code for the submit comment button</p>

<pre><code>&lt;form action="synopsis.php?id=&lt;?php $id =$_GET["id"]; echo $id; ?&gt;" method="POST"&gt;
</code></pre>

<p>and this works.</p>

<p>Here is the reload.php file, which doesn't work, and I want it to be back to synopsis?id=1 everytime I hit delete</p>

<pre><code>&lt;?php
$id=$_GET['id'];
$link = mysql_connect("localhost", "root", "");
$refresh = mysql_query("SELECT id FROM dvd where id=$id",$link);
$row = mysql_fetch_assoc($result);
header("Location:synopsis.php?id=&lt;?php $id =$_GET["id"]; echo $id; ?&gt;");
?&gt;
</code></pre>

<p>Please help</p>
