Jump to content

Embedded queries??


ryan.od

Recommended Posts

I have a database with the following two tables:

 

1. job

2. company

 

Each job entry has its own info as well as a job_comp_id column that corresponds to a a comp_id column in the company db table.

 

This works fine. No problems separating info and getting that info into the db.

 

The most simple way I can explain my issue is as follows: Within a while loop that is working its way through my first $row array (generated from $result = mysql_query($sql)), how can I query a different table? Kind of like 'embedded queries'.

 

I totally understand why I separated the companies from the jobs. However, now it is a pain in the butt trying to work with both tables in one page.

Link to comment
https://forums.phpfreaks.com/topic/57767-embedded-queries/
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.