Jump to content

[SOLVED] Double results


Stooney

Recommended Posts

Maybe it's just cause I'm tired, but I'm getting double results from this query and can't figure it out.

 

SELECT r.report_id, r.report_name FROM apd_reports as r, apd_rpd as p WHERE p.discipline_id=1

 

apd_reports is two columns (report_id, report_name)

apd_rpd is three columns (apd_id, discipline_id, report_id)

 

All it needs to do is grab all the report ids/names of the reports matched with the given discipline id.  This is working, but it's giving me the results twice -_-

Link to comment
https://forums.phpfreaks.com/topic/160879-solved-double-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.