PHP Passing ID in href
<p>I'm trying to make editable rows in a table.
So i need to link to another php file, while passing the id from my database Fetches. I watched some tutorials but it doesnt work for me.
Everything works fine so far but the 'a href' wont show me any id when i get to the edit.php page. </p>

<pre><code>  &lt;?php
$user = 'root';
$password = 'root';
$db = 'projekte_db';
$host = 'localhost';
$port = 3306;

$con = mysqli_connect($host, $user, $password, $db);
$query = "Select id,name,ort,strasse,projektleiter from Projekt";
$result = mysqli_query($con,$query);

while($row = mysqli_fetch_array($result)){
    echo "&lt;tr&gt;
    &lt;td&gt;".$row["id"]."&lt;/td&gt;
    &lt;td&gt;".$row["name"]."&lt;/td&gt;
    &lt;td&gt;".$row["ort"]."&lt;/td&gt;
    &lt;td&gt;".$row["strasse"]."&lt;/td&gt;
    &lt;td&gt;".$row["projektleiter"]."&lt;/td&gt;

    &lt;td&gt;&lt;a href='edit.php?id='".$row["id"]."alt='edit'&gt;Bearbeiten&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;";
}?&gt;
</code></pre>