I have the following code for my tables/patients.php file:
- Code: Select all
class tables_patients{
function getTitle(&$record){
$firstname=$record->val('name_first');
$middlename=$record->val('name_middle');
$lastname=$record->val('name_last');
$fullname=$firstname.' '.$middlename.' '.$lastname;
$return $fullname;
}
}
It works splendidly. In firefox I have my tabs resizable to giganto proportions so my users can see the full name on each tab. I am curious if I can do the same thing for the patients child tables. So it would have the name of the person..followed by any other designator I choose....
[[ Edited to remove php tags since it caused problems with my original post... but obviously those are the greater than question mark etc etc ]]
[[edited again since the problem was fixed..see below....]]
I know that code isnt correct since it would try to reference the child's 'name_first' field, of which there is none.
Thank you kindly in advance. This is not a rush question.