Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include '../session.php';
- require_once 'config.php';
- if (isset($_POST['id'])) {
- $query = "SELECT `id`, `image_name`, `$updated_photo` FROM `crew_info` WHERE `id` = ?";
- $stmt = mysqli_prepare($conn, $query);
- mysqli_stmt_bind_param($stmt, 's', $_POST['id']);
- mysqli_stmt_execute($stmt);
- mysqli_stmt_bind_result($stmt, $id, $image_name, $updated_photo);
- while (mysqli_stmt_fetch($stmt)) {
- sprintf("%s", $updated_photo);
- }
- header("content-type: image/jpeg");
- sprintf("%s", $updated_photo);
- }
- else {
- echo "No Image";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement