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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:30:24+00:00 2026-06-15T07:30:24+00:00

I have a table called workdetails. I have a foreign key called personid to

  • 0

I have a table called workdetails. I have a foreign key called personid to identify all the work details belonging to the same person. The qualificationdetails table consist of the following Fields:

  • Qualificationid (Pri, INT, Auto_increment)
  • QualificationType (Varchar)
  • QualificationName (VarChar)
  • InstitutionName (VarChar)
  • CompletionYear (VarChar)
  • Personid (Foreign Key, INT)

When the user completes a form, s/he will submit as many qualifications as they wish. Now I would like to Retrieve this data and display it on a web page. The following is the php code at the top of the page:

<?php
//Start the session
session_start();
//Connect to the database
require 'scripts/connect.php';
//Get the Person id
$persid = $_GET['Personid'];
//Select Applicant information from the tables
$Personid_query ="SELECT * FROM person where Personid=$persid";
$Qualification_query ="SELECT *FROM qualifications where Personid=$persid";

//Submit the selected information into the database
$Personid = mysql_query($Personid_query) or die(mysql_error);

$Qualificationid = mysql_query($Qualification_query) or die(mysql_error);

//Fetch the Applicant data
$row = mysql_fetch_assoc($Personid);
$QDrow = mysql_fetch_assoc($Qualificationid);
//I need to have another look at this one as well

?>

The following code is within the html tags

Qualification Name:

                                <hr width ="50%" />
                              <table border="0">
                              <!-- Display Qualification details-->
                              <tr>
                              <td><strong>Institution Name:</strong></td>
                              <td><?php echo $QDrow['InstitutionName'];?><br/></td>
                              </tr>
                              <tr>
                              <td><strong>Year Completed:</strong></td>
                              <td><?php echo $QDrow['CompletionYear'];?><br/></td>
                              </tr>

But the problem is that this above code only displays one Record, BUT I would like to display a Recoroder per person. for example

  • Person 123
  • Bachelor of Science
  • Mathematics
  • University of Germany
  • 1999

  • Person 1234
  • Bachelor of Science
  • Statistics
  • University of London
  • 2000.
    I really need assistance
  • 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-15T07:30:25+00:00Added an answer on June 15, 2026 at 7:30 am

    Why not to use JOIN

     $query ="SELECT * FROM person INNER JOIN qualifications ON   
    person.Personid=qualifications.Personid where Personid=$persid";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a table called person. which has personid and contactid. if a person is
I have a table called USERS that has a foreign key to the table
I have a table called TPM_TASKS which contain all tasks, as well as a
In my oracle database I have table called PERSON with columns code, surname, forename.
I have table name called Person with following column names P_Id(int), LastName(varchar), FirstName (varchar).
I have a table called products with primary key Id . I want to
I have a table called person, one of the attributes is years_worked. I need
I have table called 'shipped_data' https://i.stack.imgur.com/JXBej.png and need go get all 'caseNumbers' that match
Can someone explain me how below query will work.. i have table called employee
I have table called stats . In am inserting yes or no in the

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.