it will not send me to the next page
<p>hey this is so that I should just have put some infomation into the database but it is such that when it did it would not send me to export the login page. it will just be empty words white.</p>

<p>File name <strong>activate.php</strong></p>

<pre><code>&lt;?php
            include ("include/database/db.php");
            if($stmt = $mysqli-&gt;prepare("SELECT `code`,`rank` FROM `brugere` WHERE `code` = ?"))
            {
                $stmt-&gt;bind_param('s', $g_code);
                $g_code = $_GET["code"];
                $stmt-&gt;execute();
                $stmt-&gt;store_result();
                $stmt-&gt;bind_result($code, $rank);
                $stmt-&gt;fetch();
                $count_res = $stmt-&gt;num_rows;
                $stmt-&gt;close();

                if($count_res &gt; 0)
                {
                    if($rank == 0)
                    {
                        echo "&lt;h3 class=\"toptitlecontent\"&gt;Godkende email&lt;/h3&gt;";
                        echo "&lt;div id=\"box\"&gt;&lt;ul&gt;&lt;li&gt;Husk at skrive alt ude på siden!&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;";
                        $_SESSION["code"] = $g_code;
                    ?&gt;

                    &lt;div id="midtbox_alt"&gt;
                        &lt;form action="http://,,,.dk/activate_updater.php" method="post" name="formular" onsubmit="return validerform ()" enctype="multipart/form-data"&gt;
                                &lt;table border="0"&gt;
                                    &lt;tr&gt;
                                        &lt;td id="tb-w_a"&gt;&lt;p&gt;Kategori&lt;/p&gt;&lt;/td&gt;
                                        &lt;td&gt;:&lt;/td&gt;
                                        &lt;td&gt;
                                        &lt;select name="kategori"&gt;
                                        &lt;?php
                                        $query = "SELECT id_katogori, navn FROM kategori";
                                        $result = $mysqli-&gt;query($query);
                                        while(list($id_katogori, $navn) = $result-&gt;fetch_row())
                                        {
                                            echo "&lt;option value=\"$id_katogori\"&gt;$navn&lt;/option&gt;";  
                                        }
                                        ?&gt;
                                        &lt;/select&gt;
                                        &lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td id="tb-w_a"&gt;&lt;p&gt;Djnavn&lt;/p&gt;&lt;/td&gt;
                                        &lt;td&gt;:&lt;/td&gt;
                                        &lt;td&gt;&lt;input type="text" name="djnavn"&gt;&lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td id="tb-w_a"&gt;&lt;p&gt;Facebook&lt;/p&gt;&lt;/td&gt;
                                        &lt;td&gt;:&lt;/td&gt;
                                        &lt;td&gt;&lt;input type="text" name="facebook"&gt;&lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td id="tb-w_a"&gt;&lt;p&gt;Pris&lt;/p&gt;&lt;/td&gt;
                                        &lt;td&gt;:&lt;/td&gt;
                                        &lt;td&gt;&lt;input type="text" name="pris"&gt;&lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td id="tb-w_a"&gt;&lt;p&gt;Booking Email&lt;/p&gt;&lt;/td&gt;
                                        &lt;td&gt;:&lt;/td&gt;
                                        &lt;td&gt;&lt;input type="email" name="booking"&gt;&lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td id="tb-w_a"&gt;&lt;p&gt;Mobil&lt;/p&gt;&lt;/td&gt;
                                        &lt;td&gt;:&lt;/td&gt;
                                        &lt;td&gt;&lt;input type="text" name="mobil"&gt;&lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td id="tb-w_a"&gt;&lt;p&gt;Upload Profil&lt;/p&gt;&lt;/td&gt;
                                        &lt;td&gt;:&lt;/td&gt;
                                        &lt;td&gt;&lt;input type="file" name="file"&gt;&lt;/td&gt;
                                    &lt;/tr&gt;
                                &lt;/table&gt;
                            &lt;textarea name="profiltekst" style="width:500px; height:170px;"&gt;&lt;/textarea&gt;&lt;br /&gt;
                            &lt;input type="submit" value="Godkend brugere" name="godkendt-brugere"&gt;
                        &lt;/form&gt;
                    &lt;/div&gt;
                    &lt;?php
                    }
                    if($rank == 2)
                    {
                        echo "&lt;h3 class=\"toptitlecontent\"&gt;Forkert Email&lt;/h3&gt;";
                        echo "&lt;div id=\"box\"&gt;&lt;ul&gt;&lt;li&gt;Din bruger er allerede godkendt&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;";
                    }
                }
                else {
                    /* Der er opstået en fejl */
                    echo "&lt;h3 class=\"toptitlecontent\"&gt;Ukendt side!&lt;/h3&gt;";
                    echo "&lt;div id=\"box\"&gt;&lt;ul&gt;&lt;li&gt;Der opstod en fejl&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;";
                }
            }
            ?&gt;
</code></pre>

<p>reason I have needless churning Here's how it is such a website does not get on google .. or here as I have spurget help and do not appear on google so others can see me or what to say?</p>

<p>HER <strong>http://,,,.dk/activate_updater.php</strong></p>

<p>File name</p>

<p>activate_updater.php</p>

<pre><code>&lt;?php include ("include/database/db.php");?&gt;
&lt;?php
session_start();
    if($stmt = $mysqli-&gt;prepare('UPDATE `brugere` SET `rank`=2, `katogori`=?, `djnavn`=?, `profilbillede`=?, `profiltekst`=?, `facebook`=?, `pris`=?, `booking`=?, `mobil`=? WHERE `code`=?'))
    {

        $stmt-&gt;bind_param('iiiiiiiis', $katogori, $djnavn, $profilbillede, $profiltekst, $facebook, $pris, $booking, $mobil, $g_code);
        //fra input ting ting..
        $katogori = $_POST["kategori"];
        $djnavn = $_POST["djnavn"];
        $profilbillede = $file;
        $profiltekst = $_POST["profiltekst"];
        $facebook = $_POST["facebook"];
        $pris = $_POST["pris"];
        $booking = $_POST["booking"];
        $mobil = $_POST["mobil"];
        $g_code = $_SESSION["code"];

        $stmt-&gt;execute();
        $stmt-&gt;close();
    }
    else
    {
        echo 'Der opstod en fejl i erklÃ¦ringen: ' . $mysqli-&gt;error;
    }
?&gt;
</code></pre>

<p><strong>so problem is just it will not let me be redirected to another page ..</strong></p>
