Hi,
If PHP says "Call to undefined function sqlsrv_connect()", then the function sqlsrv_connect does not exist for the version of PHP you are using, in this case PHP 7.4.8.
If it works with PHP 7.2.18, it means that you are loading the wrong drivers for PHP 7.4.8. Indeed, if you change the PHP version, it's not enough to modify the php.ini and phpForApache.ini files, you also need to put the right version of the driver.
Voir [
docs.microsoft.com]
> C:\wamp64\www\db.php
The wamp64\www\ folder is strictly for the Wampserver home page. Your local sites must not install anything there. You must use other folders, for example wamp64\www\myfolder\ or anywhere using VirtualHosts, as with all hosts.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons