i have a working code and it worked well when i run in AppInit event
sc_select(rs, “SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = ‘my_DB’ AND TABLE_NAME = ‘my_TABLE’;”);
if ({rs} === false) {
echo “Access error. Message =”. {rs_erro};
} else {
while (!$rs->EOF) {
echo $rs->fields[0] . “<br>”;
$rs->MoveNext();
}
$rs->Close();
}
But when i copy and pasted it into my custom libary files, the application return a blank page.
Is it true that macro can never be call in custom library?
Thanks for the clarifications