Bill Kneller generating this page – requires database connection and secure login
Provides a list of all J/109s similar to the class page but includes email address, and if registered on the forum, a link to their forum profile. We can also show the previous owners if known (do we want that?)
Owner List – J/109 Class Association
By default, the list is ordered by hull number. To order in some other way, just click the column header at the top of each column. The Owner/Co-Owner name is formatted as an email link that you may click on to email that individual. If you would like to update your contact information, you may do so on the Update My Info page or by contacting admin@j109.org.
Click on column headings to reorder the list.
Status key: OW = Owner; CO = Co-owner; PO = Previous Owner
while ($myrow = mysql_fetch_array($result)) {
if ($myrow[“contact_type_of”]==”OW” || $myrow[“contact_type_of”]==”CO” || $myrow[“contact_type_of”]==”PO”) {
// print one row of the owner’s list
echo “
//get dues info
$memberstatus = ” “;
$id = $myrow[“contact_id”];
$result1 = mysql_query(“SELECT *, dues_year FROM dues, contact WHERE dues_id=$id ORDER BY dues_year DESC LIMIT 1”,$db) or die (“Query failed, error message = ” . mysql_error ());
if ($myrow1 = mysql_fetch_array($result1)) {
if ($myrow1[“dues_amount”] > 0) {
if ($myrow[“contact_type_of”] == “OW” || $myrow[“contact_type_of”] == “CO”) $memberstatus = “Member ” . $myrow1[“dues_year”];
if ($myrow[“contact_type_of”] == “AM”) $memberstatus = “Associate ” . $myrow1[“dues_year”];
}
}
// echo “
“.$memberstatus.”
\n” ;
}
}
echo “
\n” ;
// Graceful exit below for someone who is not logged in
else:
echo ““;
echo “This page contains information restricted from general public access per section 2.3 of the J/109 Class Constitution. Only J/109 Class authorized users who are logged in may view this information
“;
echo “If you see this message and are a J/109 Class authorized user, you are not logged in.“;
echo ““;
endif;
?>
Permanent link to this article: https://j109.org/working-boat-list-query/