get_foreign_values_for_$field()

Works for foreign keys in class when "get_linked_variables" is set as a comment for the table and the foreign_SORT_columns and foreign_DISPLAY_columns are set for the field

Returns the all the records from the foreign table sorted by foreign_SORT_columns. The array is indexed the the primary key of the foreign table and the values are the foreign_DISPLAY_columns

Example:

example.php
<?php
include("lib.php");
load("person");

$p = new person($_GET["person_id"]);
$occupations $p->get_foreign_values_for_occupation_id();
print_r($occupations);


?>