简体   繁体   中英

Append database record in HTML5 builder fatal error

I have some code in my application:

    $dmMain->tblOrgList->append();

This code written with auto-completion, so everything is correct. But, when I trying to execute this code, I have error:

Fatal error: Call to a member function append() on a non-object in C:\\Users\\ASAP\\Documents\\HTML5 Builder\\Projects\\VitoOrgList\\index.php on line 18

Can somebody advice, where I can find a trouble? Thanks

I found the solution. Really, I have no big PHP experience :-]

I just added before calling $dmMain methods in function body:

 global $dmMain;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM