Help...with imgview.php

Discussion in 'PHP' started by Alibaba143, Dec 9, 2012.

  1. Alibaba143

    Alibaba143 Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    index.php is showing images, and i have already edited viewingimg.php ... but after removing is_int.... is only shows and icon on a white page :( bro this is my all code for index.php...and i want to show my image with next and previous option icons on the sides of image, when an image is click, can u help me ?
     
    Alibaba143, Dec 14, 2012 IP
  2. ogah

    ogah Member

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #22
    oh.. i see
    because $content in your viewingimg.php is image name, not image strings.
    so, you need fetch content of your image.
    you can choose 1 of this :
    1. fetch image content.
    replace $content = $row['image']; with $content = file_get_contents($row['image']);
    or use other fetching method.

    2. redirecting content.
    keep $content = $row['image'];
    replace echo $content; with header('Location: '.$content); exit();
     
    ogah, Dec 14, 2012 IP
  3. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #23
    I think the knowledge of the TS about PHP is so low that this would take alot of posts to get completed :) :D
     
    EricBruggema, Dec 14, 2012 IP
  4. Alibaba143

    Alibaba143 Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #24
    nope, still the same prb :(
     
    Alibaba143, Dec 14, 2012 IP
  5. ogah

    ogah Member

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #25
    so only you can help your self, case closed :D
     
    ogah, Dec 15, 2012 IP