thanks for that. ironically i <i>just</i> finished getting everything all settled about a moment before your reply, with the help of joe canon over at good old alt.php.
i'm including some code chunks here in case anyone else is interested....
please don't anyone howl over the two left joins. it's a marginally low-traffic site and it made things far easier on my end.
after checking out this stuff below, you can see the page in question (and some screenshots of the admin thing) if you like:
<a href="http://www.graphicsdesign.org/" target="_blank">the page (left side is the stuff i was sorting)</a>
<a href="http://www.graphicsdesign.org/extras/admin/edit_content.gif" target="_blank">the edit content screen</a>
<a href="http://www.graphicsdesign.org/extras/admin/add_cat.gif" target="_blank">add / edit / delete categories</a>
<a href="http://www.graphicsdesign.org/extras/admin/add_linktype.gif" target="_blank">add / edit / delete a type of link (popups of different sizes, regular link, target blank, new, etcetera)</a>
the code for the content include
(content.php)
$category_name = "";
$table = "content";
$table2 = "conaction";
$table3 = "catcall";
$db = mysql_select_db($database, $conn) or die("couldnt select database");
$sql = "
SELECT * FROM $table
LEFT JOIN $table2 ON $table.LID = $table2.LID
LEFT JOIN $table3 on $table.CAT = $table3.CAT
ORDER BY propname, CID DESC
";
$result = mysql_query($sql,$conn) or die("query failed");
while ($data=mysql_fetch_array($result)) {
// thanks to joe cannon for this if
if( $category_name != $data['propname'] ) {
$category_name = $data['propname'];
echo "<br><span class=\"news\"><b>" . $data['propname'] . "</b></span><br>\n"; // print a heading
}
echo $data['actype'];
echo $data['linkurl'];
echo "\",\"";
echo $data['linkname'];
echo "\")</script><BR>\n";
}
?>