Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7961891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:10:40+00:00 2026-06-04T05:10:40+00:00

hey this is so that I should just have put some infomation into the

  • 0

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.

File name activate.php

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

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

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

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?

HER http://,,,.dk/activate_updater.php

File name

activate_updater.php

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

        $stmt->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->execute();
        $stmt->close();
    }
    else
    {
        echo 'Der opstod en fejl i erklæringen: ' . $mysqli->error;
    }
?>

so problem is just it will not let me be redirected to another page ..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:10:41+00:00Added an answer on June 4, 2026 at 5:10 am

    I don’t see where you are redirecting at all, but this is not going to work:

    <?php include ("include/database/db.php");?>
    <?php
    session_start();
    

    You are sending output to the browser (a new line between the closing and the opening of the php tags) and session_start needs to send headers, which it cannot do if the headers have already been sent.

    I’m guessing you’ll see at least one headers already sent error message, when you enable error messaging at the top of your script:

    ini_set('display_errors',1);
    error_reporting(E_ALL | E_STRICT);
    

    Edit: To be clear, I don’t see any redirect in activate_updater.php nor does it display anything upon a successful update, so if the headers already sent part is not the problem, it’s probably this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey, I have some text that is formatted like this: [quote]foo text[/quote] and I
hey guys should be a easy one...I have some javascript that is turning my
Hey guys this should be simple, I'm just not seeing it, I would like
Hey all, I'm about to rip my hair out. I have this client that
Hey I have this code but it doesn't work because it is expecting a
Hey, this should be pretty simple, but it's causing me a lot of grief!
Hey, I just started wondering about this as I came upon a code that
I agree with this answer and like it but i really would rather have
Sometimes Eclipse comes up saying hey you should debug this line!!! but doesn't actually
Hey, so this is one of those questions that seems obvious, and I'm probably

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.