PHP Classes

File: fetch_image_frm_db.php

Recommend this page to a friend!
  Classes of Anirban Nath   Secure Image Uploading and Resizing   fetch_image_frm_db.php   Download  
File: fetch_image_frm_db.php
Role: Auxiliary script
Content type: text/plain
Description: for fetching images from DB and responsible for dispalying to user
Class: Secure Image Uploading and Resizing
Validate and resize uploaded image files
Author: By
Last change:
Date: 11 years ago
Size: 415 bytes


Class file image Download
require('conn.php'); /*important, change in conn.php to your settings*/


$query = "SELECT * FROM upload WHERE ID=$id";

$result=mysql_query($query) or die('Error, query failed'.mysql_error());

//imagecreatefromjpeg( $row['name']);
stripslashes ($row['content']);