PHP: passing parameters in the URL dynamically
<p>I want to display data in database in table form. I wrote the following code</p>

<pre><code>while($row = mysql_fetch_array($result))
{
echo "&lt;tr&gt;";
echo "&lt;td&gt;" . $row['EmpID'] . "&lt;/td&gt;";
echo "&lt;td&gt;" . $row['EmpName'] . "&lt;/td&gt;";
echo "&lt;td&gt;" . $row['Designation'] . "&lt;/td&gt;";
echo "&lt;td&gt;" . $row['Salary'] . "&lt;/td&gt;";
echo "&lt;td&gt;&lt;a href='upasg3.php?empid='". $row['EmpID'] ."&gt;Edit&lt;/a &gt;&lt;/td&gt;";
echo "&lt;td&gt;&lt;a href='upasg3.php?empid='". $row['EmpID'] ."&gt;Delete&lt;/a &gt;&lt;/td&gt;"; 
echo "&lt;/tr&gt;";
}
</code></pre>

<p>But i dont get the value of $row['EmpID'] concatenated with the value of href. It redirects to the upasg3.php with empid= blank.
how to fix this? Please help</p>
