]][ahhhhhhhfgfgdsfstrrrttrfwerwerwerdgdgrrreeteetffwerwerwerwerdsddfgh
במ12[aspddfsdfsdfdretetdfgioifngttrtrtrtrtrgsd g ggk ffghdsfaswerwerwerwerwvbnvfdgdgfbnasd asdaioioidgh;';';'
/
home
/
diginqyo
/
public_html
/
natanamstudio.in
/
stud-admin
/
Upload FileeE
HOME
<?php session_start(); if(!isset($_SESSION['un'])){ header("Location:login.php"); exit; } include'include/config.php'; $show=$conn->query('select * from grand_conference'); if(isset($_POST['save'])){ $im = $_FILES['file']['name']; move_uploaded_file($_FILES['file']['tmp_name'], "images/".$im); $conn->query("insert into grand_conference(img) values ('$im')"); if ($conn->affected_rows>0) { echo"<script>alert('Image Successfully Inserted'); window.location='logo.php'</script>"; } else { echo "Error: " . $conn->error; } } include'include/header.php'; ?> <div class="content-wrapper"> <div class="container-fluid"> <!-- Breadcrumbs--> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="images.php">Gallery</a> </li> <li class="breadcrumb-item active">images</li> </ol> <!-- Icon Cards--> <!-- Area Chart Example--> <div class="card mb-3"> <div class="card-header"> Add images:</div> <div class="card-body"> <form method="post" enctype="multipart/form-data"> <div id="txtHint"></div> <div class="form-group"> <label for="image"><b> Image:</b></label> <input type="file" class="form-control" name="file" id="image" required> </div> <!-- <div class="form-group"> <label for="Heading"><b> Heading:</b></label> <input type="text" class="form-control" name="h" placeholder="Enter Image Heading" id="Heading" required> </div> --> <button type="submit" name="save" class="btn btn-success">Save</button> </form> </div> </div> <!-- Example DataTables Card--> <div class="card mb-3"> <div class="card-header"> All images</div> <div class="card-body"> <div class="table-responsive"> <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0"> <thead> <tr> <th>SNo</th> <th>Image</th> <th>Action</th> </thead> <tbody> <?php while($sql1=$show->fetch_assoc()){ ?> <tr> <td><?php echo $sql1['id'];?></td> <td><img src="images/<?php echo $sql1['img'];?>" height="40px" width="50px"></td> <td><a href="logo_edit.php?id=<?php echo $sql1['id'];?>"><input type="submit" value="Edit" title="Edit" class="btn btn-warning"></a> <a href="javascript:;" onClick="deleteMe('<?php echo $sql1['id']?>')"><input type="submit" title="Delete" value="Delete" class="btn btn-danger"></a></td> </tr> <?php }?> </tbody> </table> </div> </div> </div> </div> <script> function deleteMe(id) { var i = confirm("Are you sure?"); if (i == true) { window.location.href = "logo_delete.php?id=" + id; } return false; } </script> <?php include'include/footer.php';?>