Thanks Lars! Hmmm, I had thought about that, but new communities could be added at any time to the communities table. If I make separate fields for each community in the "builders" table, then I'd have to add these new communities to that table as well.
Am I overlooking something so simple? If so, please let me know 🙂 I'm pretty new to PHP.
I have made some progress by doing two SELECT statements, one based on the results of another. Those results were then placed into an array like below:
FIRST SELECT
$sqlquery = "SELECT * FROM builders WHERE buID = $buID";
$result = mysql_query($sqlquery);
NEW VARIABLE FROM THIS RECORDSET
$communities= mysql_result($result,$i,"bu_communities");
SECOND SELECT
$subSql = "SELECT community_name FROM communities WHERE cID IN ($communities)";
$result2 = mysql_query($subSql);
PRINT RESULTS
<? while ($row = mysql_fetch_array($result2)) {
printf ("| %s", $row[0], $row[1]);
}
?>
Which looks like this:
| Lake View| Nillyville| Running Creek
This is probably a strange way to do it, but it works. I'm not saying I completely understand the array part (I found it online), but at least I'm getting results. Any other ideas on how to set up my "builders" table to better suit a JOIN query will be welcomed.
Thanks again Lars.
Geogal