I'm currently working on a little gallery, which can be edited by many users. I have an upload function - so people can add photos to the gallery - and I have a database, to which people can manually add information about the images. However, I want this process to work automatically, so that, when they add a photo called sunset.jpg, it immediately adds the information (i.e. Name: Sunset; Source: sunsetpix.com/sunset1; Size: 200 MB) to the MySQL database.
My current code for adding information to the MySQL database is this:
$sql = "INSERT INTO Image_table (ID, Name, FilePath) VALUES (NULL, 'NameExample', 'SourceExample')";
What do I need to change to automate this process?