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 8557857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:40:14+00:00 2026-06-11T15:40:14+00:00

it is such that I need to build a system like facebook where you

  • 0

it is such that I need to build a system like facebook where you can write something on a poster, but this is how to lookup a database for themselves, and use a database for themselves. but I must have in some way made ​​such that it is the same. What I should have few user database it’s image and it is approved image. and the user’s name

This her is my Users Database

    CREATE TABLE IF NOT EXISTS `bruger` (
  `id_bruger` int(200) NOT NULL AUTO_INCREMENT,
  `rank` int(11) NOT NULL,
  `brugernavn` varchar(255) NOT NULL,
  `password` varchar(300) NOT NULL,
  `profilbillede` varchar(255) NOT NULL,
  `profilbillede_godkendt` int(2) NOT NULL,
  `navn` varchar(100) NOT NULL,
  `efternavn` varchar(200) NOT NULL,
  `profiltekst` longtext NOT NULL,
  `alder` int(50) NOT NULL,
  PRIMARY KEY (`id_bruger`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

This is my entry database

CREATE TABLE IF NOT EXISTS `opslag` (
  `id_opslag` int(11) NOT NULL AUTO_INCREMENT,
  `tekst` longtext NOT NULL,
  `id_bruger` int(11) NOT NULL,
  PRIMARY KEY (`id_opslag`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

How have I try to build it but I do not know if I’ve done it right,

<table border="0">
            <?php
            if ($stmt = $mysqli->prepare('SELECT `tekst`, `id_bruger` FROM `opslag`')) { 
                $stmt->execute();
                $stmt->store_result();
                $stmt->bind_result($tekst, $id_bruger);

                while ($stmt->fetch()) {
                ?>
                    <tr>
                        <td>

                        </td>
                        <td><?php echo $tekst;?></td>
                    </tr>
                <?php
                }
                $stmt->close();
            } else {
                echo 'Der opstod en fejl i erklæringen: ' . $mysqli->error;
            }
            ?>
            </table>

What I need from the user system is

profilbillede

profilbillede_godkendt

brugernavn

Feel free to ask if there is more you want to know about this?

Hope you can help me

Jesper – Danmark

  • 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-11T15:40:15+00:00Added an answer on June 11, 2026 at 3:40 pm

    In that case you should use the following query instead of the one you have there

    $stmt = $mysqli->prepare('SELECT `profilbillede`, `profilbillede_godkendt`, `brugernavn` FROM `bruger`')
    

    And your bind statement to this

    $stmt->bind_result($profilbillede, $profilbillede_godkendt, $brugernavn);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to build an application that accepts user input data (such as name,
I need to store a file, such that my ASP.Net MVC app can access
I need to write an XML schema that accept XMLs such as: <?xml version=1.0
I would like to build a webpage that follows the system in vBulletin of
I have a query such that I need to get A specific dog All
I need to implement a table view such that it has 3 different sections
I need to encode streams of 8 byte such that encoded stream has only
Say i have a string that i need to evaluate in javascript such as
I have a basic Window class that I need to have events such as
we need to implement the following query in such a way that we should

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.