get_foreign_value_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 foreign_DISPLAY_columns

Example:

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

$p = new person($_GET["person_id"]);
echo 
$p->get_foreign_value_for_occupation_id();

?>