I used the following statement in PHPRunner 3.0:
function BeforeEdit(&$values)
{
// Parameters:
// $values - Array object.
// Each field on the Edit form represented as 'Field name'-'Field value' pair
// $where - string with WHERE clause pointing to record to be edited
$values["Alles"]="concat('<b>',".$values["Name"].",'</b>, ',".$values["Vorname"].",'
',".$values["Geburtsdatum"].",'
<b><i>',".$values["Wohnort"].",'</b></i>
',".$values["Straße"].",'
',".$values["Geschlecht"].",'
',".$values["Telefon"].")";
//** Custom code ****
// put your custom code here
return true;
// return true if you like to proceed with editing this record
// return false in other case
}
Now there is a problem when I call the field Alles in another Table by using
select `_person`.`ID`,
`Alles`,
`PN`,
`PEID`,
`Bemerkungen`,
`erledigt`
From `_person` inner join `_posteingang` on (`_person`.`PN`=`_posteingang`.`PEID`)
I get a strang view; I see the word concat and then the contents of the fields.
could there be a problem with the qoutes ?
thank you for an answer.
Dieter