I have two mysql tables. Both tables have three fields which have the same names... "version", "type" and "id".
I want to select the version and type columns from both tables if either table has an id = $id.
I used a join statement...
Then i displayed each row of the result in php as normal but instead of showing the four different packets it should have, it just shows two packets and then the same two packets again.
Not sure where I'm going wrong with this one. A little help...!
I want to select the version and type columns from both tables if either table has an id = $id.
I used a join statement...
Code:
SELECT rtcp_sr_packets.uniqueid, rtcp_sr_packets.Version, rtcp_sr_packets.Type, rtcp_sdes_packets.uniqueid, rtcp_sdes_packets.Version, rtcp_sdes_packets.Type FROM `rtcp_sr_packets`, `rtcp_sdes_packets` WHERE rtcp_sr_packets.`Call-ID` = 'Call-ID:f6ea990c-5bfe-db11-892e-0014a411311e@robuntu';
Then i displayed each row of the result in php as normal but instead of showing the four different packets it should have, it just shows two packets and then the same two packets again.
Not sure where I'm going wrong with this one. A little help...!
