Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Can Ince  >  img2MySQL  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example Usage
Class: img2MySQL
Store and retrieve image files in a MySQL database
Author: By
Last change:
Date: 9 years ago
Size: 272 bytes
 

Contents

Class file image Download
<? 
require ("img2mysql.class.php");
// Img2Mysql($mysqluser, $mysqlpassword, $mysqlhost, $mysqldatabase)
$mysql = New Img2Mysql('root','','localhost','img2mysql');

 
$content=$mysql->getImageByName("banner2");
header("Content-type: image/jpg");
 echo 
$content;
?>