diff --git a/Technical-Wiki.md b/Technical-Wiki.md index c8a6234..9e2b906 100644 --- a/Technical-Wiki.md +++ b/Technical-Wiki.md @@ -177,3 +177,10 @@ $field = Array } ```` +* To link a table's (````chq_batches````) displayed field (````ORID````) value to an external file as a link with it's value in the url using a $_GET variable (````orid````): +```` + function selectLink($val, $field) { + if ($field['field'] == 'ORID' && $_GET['select'] == 'chq_batches' && $val !== NULL) + return 'orslip.php?select=chq_batches&orid='.$val; + } +````