Hello,
I want to know if it possible to include a var into the function myRecordHandler.
function myRecordHandler($record) { echo $record[$var1]."<br>"; }
José
Hello José,
Certainly - as long as $var1 is declared global, and is the value of a field name that you are expecting within $record; for example:
$var1 = "MYFIELD"; function myRecordHandler($record) { global $var1; echo $record[$var1]."<br>"; }
Hope this helps! Cheers, David.
Thanks, it works perfectly.
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hello José,
Certainly - as long as $var1 is declared global, and is the value of a field name that you are expecting within $record; for example:
$var1 = "MYFIELD";
function myRecordHandler($record) {
global $var1;
echo $record[$var1]."<br>";
}
Hope this helps!
Cheers,
David.