What are the ways to insert an image path into the MySQL database and save it in the folder and display the same image in a web page via PHP? I want develop a chat web application sending txt messages, images and videos, how to do that in PHP and MySQL using MVC.?