very little help required in Php

Discussion in 'PHP' started by ironmankho, Dec 24, 2008.

  1. #1
    please help me to add open new window _blank

    here is my php code :

    i want open this image in new window using _blank
     
    Solved! View solution.
    ironmankho, Dec 24, 2008 IP
  2. #2
    Replace this:

    
    $imagel.= '<a href="/view.php?id='.$imagehd.'">'.$imgsize[0].'x'.$imgsize[1].'</a> '; 
    Code (markup):
    With

    
    $imagel.= '<a href="/view.php?id='.$imagehd.'" target="_blank">'.$imgsize[0].'x'.$imgsize[1].'</a> '; 
    Code (markup):
     
    qualityfirst, Dec 24, 2008 IP
  3. ironmankho

    ironmankho Active Member

    Messages:
    393
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    thanks it works ...but how i able to add '|' after image size like 1280x1024|
     
    ironmankho, Dec 26, 2008 IP
  4. planemaniac

    planemaniac Peon

    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To add the | you need to use this:

    
    $imagel.= '<a href="/view.php?id='.$imagehd.'" target="_blank">'.$imgsize[0].'x'.$imgsize[1]. '|' .'</a> ';
    
    Code (markup):
    Hope that helps!
     
    planemaniac, Dec 26, 2008 IP
  5. ironmankho

    ironmankho Active Member

    Messages:
    393
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #5
    Thank you very much it works
     
    ironmankho, Dec 26, 2008 IP