custom code can't connect to msyql

tbswork1 22 Mar, 2022
after upgrading joomla site to php7.4 the custom code of chronoforms 5 stops working and shows error:

0 - Could not connect to MySQL server.
You need to login to be able to post a reply.