What I want to do is I want to update the last inserted ID of the mysql database to insert my uploaded file name to that last inserted ID row under the img.
This adding name function will be running after the first insert query from another process script which will insert some other data in to the database.