UPDATE form won't work
<p>so I'm new to PHP and I'm trying to make an update site, while I know this might be some newbie stuff, I haven't found anything that realy helped me. The problem is that the form doesn't fill up with the data from the DB. Also I checked the names of thecolumns in the DB a dozen times.
 this is the code:  </p>

<pre><code>    &lt;?php
     $Id = $_GET["id"];
    $con=mysqli_connect("studentwebserver.informatika.uni-mb.si","FKding","*******","rss_db");
    if (mysqli_connect_errno($con))
    {
      echo "Prišlo je do napake pri prenosu podatkov: " . mysqli_connect_error();
    }
     else {
        $result = mysqli_query($con,"SELECT * FROM lacen_si_vnos WHERE id = $Id");

        while($row = mysqli_fetch_array($result))
        {
            $imerestavracije = $row["imerestavracije"];
            $lokacija = $row["lokacija"];
            $telefon = $row["telefon"];
            $opis = $row["opis"];
            $bon = $row["bon"];
            $cenabona = $row["cenabona"];
            $spletnastran = $row["spletnastran"];
        }
    }
    if($_POST["gumb"] == "posodobi") { 
    $Id = $_POST["Id"];

    //$radio = $_POST[bon]?"Da":"Ne";
    mysqli_query($con,"UPDATE lacen_si_vnos SET imerestavracije = '$_POST[imerestavracije]', lokacija = '$_POST[lokacija]',
        telefon = '$_POST[telefon]', opis = '$_POST[opis]', bon = '$_POST[bon]', cenabona = $_POST[cenabona],
            spletnastran = '$_POST[spletnastran]' WHERE imerestavracije = $imerestavracije");
 }
 else if($_POST["gumb"] == "brisi") { 
    $Id = $_POST["Id"];

    mysqli_query($con,"DELETE FROM lacen_si_vnos WHERE id = $Id");
     }?&gt; 
</code></pre>

<p>I'm filling my form with </p>

<pre><code>    &lt;input ..... value="&lt;?php echo $variable ?&gt;" /&gt;
</code></pre>

<p>I feel there must be some kind of problem with getting the ID from the DB, but obviously I can't figure out what.</p>

<p>Thank's for your help!</p>
