The task: Write a PHP script to get images from database (database table “PHOTOS”), resize them and output them in the browser. Here’s my quick solution(not optimized): thumb.php [sourcecode language=”php”] <?php require_once(‘dbconfig.php’); // file that stores our database connection variables require_once(‘functions.php’); // resize script try { if (!isset($_GET[‘id’])) { throw new Exception(‘ID not specified’); } […]
Read More ›