You can store the image files in the Database table either in base64 format or its path after uploading.
In the base64 method, it is not necessary to store the uploaded file on the server because it is been directly accessed with the base64 encoded value.
In this tutorial, I am using PDO connection for storing multiple image files path in the MySQL database table.