the first name and last name fields are all likely to be filled, however there will be many facilities with either one or both of the NHA, DON fields NULL.
The resumes database, or at least the questioned part
RESUME_ID is an int, primary key, auto increment
FIRST_NAME is a varchar(50), NULL (default)
LAST_NAME is a varchar(50), NULL (default)
The facilties database -
FACILITY_ID is an int, primary key, auto increment
NHA is a varchar(255), NULL(default)
DON is a varchar(255), NULL(default)
Ive tried running your code/modifying it, but can't seem to get it to work...something with the logic always comes up wrong. the current error message is this -
You have an error in your SQL syntax near 'FROM resumes, facilities WHERE = facilities.NHA AND = facilities.DON'
<?php
$resumes_fullname = "";
$query_Recordset2 = "SELECT *, CONCAT(resumes.FIRST_NAME, ' ',
resumes.LAST_NAME) AS $resumes_fullname FROM resumes, facilities WHERE
$resumes_fullname = facilities.NHA AND $resumes_fullname = facilities.DON";
$Recordset2 = mysql_query($query_Recordset2, $mydb) or die(mysql_error());
?>
Now I've tooled around with that and gotten it to give me some strange stuff, like it finally started listing stuff like - Resource ID#4 Resource ID#5...like its concatinating those two things instead of the names in the resumes database...I've also gotten it to give me all 10's lol...don't ask.
I'm just flat out confused now. 🙂