Source Code
<div class="main">
<form action="" method="post" enctype="multipart/form-data">
<div class="tab">
<div align="center"><p><span id="b" ><i>PHOTO UPLOAD<
/i></span></p>
<p>Filename:
<input type="file" name="photo" id="file"
size="18"/></span>
Caption:
<input type="text" name="caption" value="" required="required"/>
<input type="submit" name="submit" value="Submit"
class="submit" /></span>
</p>
</div>
<div align="center"><h2><?php echo $err; ?
></h2></div>
<br />
<br />
<div class="tab1">
<ul class="ul">
<?php
$select=mysql_query("select*from photo");
while($row=mysql_fetch_array($select))
{
$name=$row['name'];
$size=$row['size'];
$type=$row['type'];
$temp=$row['image'];
$caption1=$row['caption'];
$id=$row['id'];
?>
<li>
<div class="img">
<p align="center"><span id="io"><img src="upload/<?php
echo $name;?>" width="200" height="200" alt="<?php echo $name;?>"/>
</span></p>
<p align="center"><?php echo $caption1;?></p>
<p align="center"><a href="uedit.php?id=<?php echo $id;?>"><span
id="a"> Edit </span></a>
<a href="udelete.php?id=<?php echo $id;?>" onclick="return confirm('Really
Do You Want To Delete This Image');">
<span id="a"> Delete </span></a>
</p>
</div>
</li>
<?php } ?> </ul> </div>
</form> </div>
No comments:
Post a Comment