mirror of https://github.com/xfarrow/phpxpress.git
Update README.md
This commit is contained in:
parent
e0fd40940f
commit
55ee0d1731
17
README.md
17
README.md
|
@ -35,16 +35,19 @@ $table->draw();
|
||||||
|
|
||||||
function onValueDisplaying($caption, &$value, $row){
|
function onValueDisplaying($caption, &$value, $row){
|
||||||
if($caption == "ssn"){
|
if($caption == "ssn"){
|
||||||
if($row["ssn"] != "12345"){
|
if($row["ssn"] != "12345")
|
||||||
|
{
|
||||||
$value = "SSN not shown for privacy reasons";
|
$value = "SSN not shown for privacy reasons";
|
||||||
}
|
}
|
||||||
else{
|
else
|
||||||
|
{
|
||||||
$value = $row["name"] . " " . $row["surname"] . " agreed to share their ssn (12345)" ;
|
$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";
|
$value = "This column did not exist in the datasource";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue