Visit my blog for more informations and code
https://helponnet.com/2021/07/30/mysql-db-management-with-php/ .