Jump to content

Select 2 Tables


phpretard

Recommended Posts

Is it possable to select 2 tables with the same query?

 

I would like to combine the two statements.

 

mysql_query("SELECT * FROM members WHERE CNumber='$CNumber' ");

mysql_query("SELECT * FROM readings WHERE CNumber='$CNumber' AND RType='$RType'");

 

Thank you.

 

Is CNumber the same thing in both tables?

Link to comment
https://forums.phpfreaks.com/topic/97686-select-2-tables/#findComment-499845
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.