Jump to content

merrydown

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Posts posted by merrydown

  1. Hi, I am storing images in a database for use on a website.  The problem is that when I try to save an image I am displaying on the page, the script name is the save name. (  The image src is typically: "view.php?imageID=3&size=thumb".  The code / headers in the script view.php which displays the images are:

    if (!empty($row_imageRS['image'])){
        // Output the MIME header
        header("Content-Type: {".$row_imageRS['mimeName']."}");
    $latifah=$row_imageRS['name'];
    if ($_GET['size']=='main') {
    // Output the image
        echo $row_imageRS['image'];}
    if ($_GET['size']=='thumb') {
    // Output the image
        echo $row_imageRS['thumb'];}
    }

    My question is, how do I get the displayed image to right-click save as $row_imageRS['name'] ?

    Cheers for any help offered!

    Jim
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.