Thanks Pastor doug, I'm using a Unix server, with a MySQL database. I have php MyAdmin installed so I can browse and edit the data easily. I've edited my code a bit (trial and error) so that I coiuld ask for help easier.
<?
$query = "SELECT * FROM raw_jobs, raw_clients ";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result)) {
$job_id = $row['job_id'];
$job_name = $row['job_name'];
$job_company = $row['job_company'];
$job_addedby = $row['job_addedby'];
$id = $row['id'];
$client_company = $row['client_company'];
echo "<table width=\"396\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td width=\"198\"><font color=\"#FFFFFF\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\"><a href=\"jobdetails.php?job_id=$job_id\">$job_name</a></font></td>
<td width=\"114\"><font color=\"#FFFFFF\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">$job_company</font></td>
<td width=\"84\"><font color=\"#FFFFFF\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">$job_addedby</font></td>
</tr>
</table>";
}
?>[/COLOR]
That was the full code on the page. That currently works. I'm having a side problem of the info just repeating itself but that is another issue.
What I need is to take the $id and the $job_company numbers which should match and get the coresponding $client_company
Does this make any sense?
the raw_jobs table has information on the jobs as well as the job_company. The job-company variable corresponds with the variable id in the raw_clients table. Getting the number is simple but I want to take that number and get the $client_company on the same row.