In this project you’ll build an ESP32 or ESP8266 client that makes an HTTP POST request to a PHP script to insert data (sensor readings) into a MySQL database.
Complete project details: https://RandomNerdTutorials.com/esp32-esp8266-mysql-database-php/