| 
<?php/**
 * SQLimg usage example
 *
 * @author Richard Carson <[email protected]>
 * @copyright Richard Carson, 2014
 */
 include('sqlimg.php');
 
 # ATTENTION!
 # Before running this, be sure to run the initialization code in install.sql
 
 # Display the first image in the database - the installed demo image will do
 # display() will call die() once it is done, to prevent messing things up...
 # It must also be called before headers are sent!
 foreach(SQLimg::all() as $key=>$type)
 SQLimg::display($key);
 ?>
 |