PHP Classes

File: display_images.php

Recommend this page to a friend!
  Classes of Anirban Nath   Secure Image Uploading and Resizing   display_images.php   Download  
File: display_images.php
Role: Auxiliary script
Content type: text/plain
Description: file for dispalying the output to the user
Class: Secure Image Uploading and Resizing
Validate and resize uploaded image files
Author: By
Last change:
Date: 13 years ago
Size: 667 bytes
 

Contents

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


$query="select * FROM upload ";

$result=mysql_query($query) or die('Error, query failed'.mysql_error());
while (
$row=mysql_fetch_array($result))
{
?>
<div style="border:1px solid; border-color:#00FF66; float:left; padding-left:8px;">
<img src="fetch_image_frm_db.php?pid=<?php echo $row['id'];?>" height="180px" width="150px"/>
</div>
<p>
  <?php }
?>

<html>
<title> IMAGE UPLOADING( SECURE, RESIZE, AND STORING IN MYSQL) BY An!rban from "INDIA" </title>
<body>

<a href="image_upload.php" style=" padding-left:14PX;">BACK TO UPLOAD PAGE</a>

</body>
</html>