Download the PHP package bartonlp/mysqlslideshow without Composer
On this page you can find all versions of the php package bartonlp/mysqlslideshow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bartonlp/mysqlslideshow
More information about bartonlp/mysqlslideshow
Files in bartonlp/mysqlslideshow
Package mysqlslideshow
Short Description Slide show driven by a mysql database table
License MIT
Informations about the package mysqlslideshow
MySqlSlideShow
Store Slide Show information in a MySql database and show Slide Show in a browser.
History
This class was designed in 2009 and was updated April 2015 to new HTML5 and CSS3 features. It was updated again Jan. 2023.
Install
Either download the ZIP file or install with Composer.
- unzip the zip file (you have probably already done this if you are reading this)
- the directory structure is as follows:
- examples/
- README.html
- README.md
- composer.json
- gulpfile.js
- In either case you may need get *mysql* running and then:
Create the database table. The file 'mktable.sql', in the 'examples' directory, if sourced within the 'msql' client will make the table 'mysqlslideshow'. If you want to call your table something else you can edit the 'mktable.sql' file and then either edit the 'mysqlslideshow.class.php' (NOT RECOMMENDED), or use the constructor with the additional optional arguments: The first three arguments come from the 'dbclass.conectioninfo.i.php' file. Add the forth and fifth arguments for your database name and table name.CREATE DATABASE mysqlslideshow;
Or edit 'dbclass.connectioninfo.i.php' and add '$Database' and '$Table' and add them to the invocation above instead of the strings. You can create the table from inside the 'mysql' client by using the source statement:$ss = new MySqlSlideshow($Host, $User, $Password, 'YourDatabaseName', 'YourTableName');
or just do it the hard way by typing in the create statement.source mktable.sql; - add some images to your database table. There are two easy ways to do this:
- use the 'addupdateimage.php' program in the 'examples' directory.
- use the 'addimages.php' program in the 'examples' directory.
- try out the examples 'serverside.php' and 'browserside.html' on your own server. Then start writing your own code.
Have fun. If you don't have Apache running you can use the PHP server. Just enter
from the project directory and then in your browser enterphp -S localhost:8080
or 'browserside.html' to see the sites. Any questions can be sent to [email protected] I will try to answer reasonable questions.localhost:8080/serverside.php
Examples
There are three files in the 'examples' directory:
- serverside.php
- browserside.html
- ie.html
- mysqlslideshow.class.php
'mysqlslideshow.classs.php' is the Ajax target and has the MySqlSlideShow class.
Conclusion
The class is hosted at https://github.com/bartonlp/mysqlslideshow as well as the 'PHP Classes' http://www.phpclasses.org.
Copyright © 2009-2023 Barton Phillips http://www.bartonphillips.com [email protected] OR [email protected]
Last Modified Jan. 27, 2023