This is working :
$myFunc = B01();
This is not working … why ??
$etab_be = “B01”
$myFunc = $etab_be();
error :Call to undefined function B01()
But this should work or not ??
Best regards
Uwe
This is working :
$myFunc = B01();
This is not working … why ??
$etab_be = “B01”
$myFunc = $etab_be();
error :Call to undefined function B01()
But this should work or not ??
Best regards
Uwe
The way correct is:
$sql = “select myfunction()”;
sc_lookup(dataset,$sql);
$myvalue = {dataset[0][0]};
I do not think …
function myfunction()
return “* FROM <mytable>”;
$sql = “select myfunction()”;
sc_lookup(dataset,$sql);
=> Error: Undefined property: blank_apl::$myfunction
Which is also entirely correct …
Please: $myvalue = {dataset}[0][0]; …
Helo,
my question has noting to do with a sql select statement…
it’s only a dynamically call of a function using a variable…
Best regards
Uwe Pfeiffer
[QUOTE=Pfeiffer;16724]
it’s only a dynamically call of a function using a variable…[/QUOTE]
Yes, but that is not working …
Is a function php? or from a database?
Hello Uwe,
you must use the php function call_user_func
Here is an example when I understand your question correct:
function B01 ($type) {
print “$type”;
}
$etab_be = “B01”;
$myFunc = call_user_func ($etab_be, “my Variable Value”);
I hope I can help you.