Php is a programming language not a database. You do not need a database for a slideshow, however you would use php to upload the images as well as list all the images in a directory. Once you accomplish that, you can pass the images to your slideshow.
You can probably easily implement this script to your webpage.
solved Slideshow in HTML5 [closed]