Call to undefined function mysql_query() (v2018)

I have generated an interface with phpmaker2018.
On windows os the page can be visualised correctly , but if i move it to ubuntu i get this error:
Fatal error: Uncaught Error: Call to undefined function mysql_query() in /home/lss/www/web-int/ewmysql14.php:712 Stack trace: #0 /home/lss/www/web-int/ewmysql14.php(148): mysqlt_driver_ADOConnection->do_query('SET NAMES ‘lati…’, -1, -1, false) #1 /home/lss/www/web-int/phpfn14.php(4954): ADOConnection->Execute('SET NAMES ‘lati…’) #2 /home/lss/www/web-int/phpfn14.php(4857): ew_ConnectDb(Array) #3 /home/lss/www/web-int/phpfn14.php(4898): Conn(0) #4 /home/lss/www/web-int/index.php(221): ew_Connect() #5 /home/lss/www/web-int/index.php(322): cdefault->__construct() #6 {main} thrown in /home/lss/www/web-int/ewmysql14.php on line 712

Please double check your PHP version in your web server.

The mysql extension was deprecated in PHP 5.5.0 and removed completely from PHP 7.0.0

mysql Server version: 10.1.44-MariaDB
PHP 7.2.24
How could I fix this issue?

It is clear now, thank you for your update.