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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:04:43+00:00 2026-05-27T21:04:43+00:00

I am getting confused with this. I have searched the internet and it is

  • 0

I am getting confused with this. I have searched the internet and it is still confusing me. I have the following tables:

Meetings: meeting_id, title, chairman, secretary, occurances
Rooms: room_id, room, date, time, meeting_id

I want everything to be displayed on a table. My PHP is as follows:

    <?php

$result = mysql_query("SELECT * FROM Meetings INNER JOIN Rooms ON meeting_id = Rooms.meeting_id")
or die(mysql_error()); ;

if (mysql_num_rows($result) == 0) {
       echo 'There Arent Any Meetings Setup Yet';
    } else {

echo "<table border='0'><table border width=100%><tr><th>Title</th><th>Chairperson</th><th>Secretary</th><th>Terms of Reference</th><th>Occurances</th><th>Room</th><th>Date</th><th>Time</th>";        

while($info = mysql_fetch_array($result))
{

        echo "<tr>";
        echo "<td><br/>" . $info['title']." </td>";
        echo "<td><br/>" . $info['chairperson']. "</td>";
        echo "<td><br/>" . $info['secretary']."</td>";
        echo "<td><br/>" . $info['tof']. "</td>";
        echo "<td><br/>" . $info['occurances']. "</td>";
        echo "<td><br/>" . $info['room']. "</td>";
        echo "<td><br/>" . $info['date']. "</td>";
        echo "<td><br/>" . $info['time']. "</td>";

        }
    }
echo "</tr>";
echo "</table>";


?>

It comes out with the following error message:

Column ‘meeting_id’ in on clause is ambiguous

I am trying to display all the fields from the meetings table and obviously the room, date and time only.

How do I fix this?

  • 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-27T21:04:43+00:00Added an answer on May 27, 2026 at 9:04 pm

    You need to define which table you want meeting_id to be selected from.

    e.g.

    `SELECT * FROM Meetings INNER JOIN Rooms ON Meetings.meeting_id = Rooms.meeting_id`
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read many answers regarding this still i am getting confused if i
This should be simple, but I'm getting confused. I have a parent/child tables -
A common issue I have is getting confused what $(this) is referring to. I
This is getting me quite confused: I have a small application that uses a
I'm getting confused with class inheritance for css. I have this: <ul id='grok'> <li
I have an exam tomorrow in this and I'm getting really confused about this
Im getting very confused with indexes in MySQL. I have two tables: TableA1 and
getting a bit confused over this problem... I have an administrative part of my
I am getting really confused with this concept: If I want to implement a
I'm getting confused by bank switching in PIC assembler... This works for putting a

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.