PHP Classes

File: index.php

Recommend this page to a friend!
  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: 19 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;
?>