Update README.md

This commit is contained in:
Alessandro Ferro 2022-05-12 10:22:54 +02:00 committed by GitHub
parent e0fd40940f
commit 55ee0d1731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 7 deletions

View File

@ -35,16 +35,19 @@ $table->draw();
function onValueDisplaying($caption, &$value, $row){
if($caption == "ssn"){
if($row["ssn"] != "12345"){
if($row["ssn"] != "12345")
{
$value = "SSN not shown for privacy reasons";
}
else{
}
else
{
$value = $row["name"] . " " . $row["surname"] . " agreed to share their ssn (12345)" ;
}
}
else if($caption == "Extra"){
}
}
else if($caption == "Extra")
{
$value = "This column did not exist in the datasource";
}
}
}
```