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

  • Home
  • SEARCH
  • 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 4559794
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:50:22+00:00 2026-05-21T17:50:22+00:00

for some friends and family (different sites), I created a script that allows them

  • 0

for some friends and family (different sites), I created a script that allows them to input data into the database. With

echo ("<a href=\"./pagina.php?ID=" . $row['ID'] . "\">" . $row['ID'] . "<br>");

, I ‘send’ the ID of the requested table to the URL.

In pagina.php, I have this code:

ID: <?php echo $_GET["ID"]; ?>

That works, of course, but now I want to use that ID to also display the data from the database, so not from the URL. These values are " . $row['onderwerp'] . " and " . $row['tekst'] . "
(There may be more values to come, but I’m just a beginner, trying to get something to work).

I know this is possible, but I just can’t get anything to work, as I have just started learning PHP.

I hope you can help me.

  • 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-05-21T17:50:23+00:00Added an answer on May 21, 2026 at 5:50 pm
    $id = (int)$_GET['id'];
    
    $sql = "SELECT onderwerp, tekst FROM yourtable WHERE id=$id";
    $result = mysql_query($sql) or die(mysql_error());
    
    while($row = mysql_fetch_assoc($result)) {
        echo "{$row['onderwerp']} - {$row['tekst']}<br />";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm actually creating websites for fun and some of my friends told me that
Some friends with the help of various sites check and know when i'm invisible
I have some friends who are 'old-school' VB6 database developers and I was telling
I have a mysql database with a variety of different tables with some storing
I've database with a lot of entries and with help of some friends here
Some friends and I wanted to develop a game. Any language will do. I've
Me and some friends are writing a MORPG in Java, and we would like
I am developing a simple library in C, for my own + some friends
I am developing a website using CodeIgniter and PHP. Some of my friends suggest
My Friends, I spent quite some time on this one... but cannot yet figure

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.