-- -- Table structure for table `photos` --
<div id="right-nav"> <h1>Your Photos</h1> <div> <form method="post" action="add_photo.php" enctype="multipart/form-data"> <input type="file" name="image"> <button class="btn-submit-photo" name="Submit" value="Log out">Add Photos</button> </form> <hr /> </div> <?php include("includes/database.php"); $id = $row['photo_id']; ?> <div class="photo-select"> <center> <img src="<?php echo $row['location']; ?>"> <hr> <a href="delete_photos.php<?php echo '?id='.$id; ?>" class="btn-delete-photos">Delete</a> </center> </div> <?php } ?> </div>
<?php ?>
<?php include('includes/database.php'); include('session.php'); echo ""; }else{ $file=$_FILES['image']['tmp_name']; $image = $_FILES["image"] ["name"]; $size = $_FILES["image"] ["size"]; $error = $_FILES["image"] ["error"]; if ($error > 0){ }else{ if($size > 10000000) //conditions for the file { } else { $location="upload/" . $_FILES["image"]["name"]; $user=$_SESSION['id']; } } } ?>