Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4594674
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:51:41+00:00 2026-05-21T22:51:41+00:00

I have some thumbnail images with its larger version.I placed the thumbnail images in

  • 0

I have some thumbnail images with its larger version.I placed the thumbnail images in a page.Now for link I just gave a link

<a href="image/largerimage1.jpg"><img src="thumbnail1.jpg></a>

but for this I have to make different pages for showing larger one.I want to give a link to show them in a single page.means whenever I will click the thumbnail it will open the larger one in a page with the same url but with its name like

imagegallery.php?news=images/largerimage1/13.jpg
imagegallery.php?news=images/largerimage1/14.jpg

so how to do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T22:51:42+00:00Added an answer on May 21, 2026 at 10:51 pm

    Pretty basic stuff, I suggest you get to read some PHP tutorials on the internet to get some knowledge on one thing and another.

    The ?news= part in your URL is a parameter that can be read by PHP. This type is known as $_GET. To get this part you would need $_GET['news'] so if we’d use your first link and place this inside a script: echo $_GET['news']; the page would say images/largerimages1/13.jpg.

    In order to get the image loaded on your website we need some simple steps, I’m changing the news parameter into image, that suits better for your script since it ain’t news items:

    <?php
    // Define the path (used to see if an image exists)
    $path = 'your/absolute/path/to/public_html/'; # or wwwroot or www folder
    // First check if the parameter is not empty
    if($_GET['image'] != "") {
      // Then check if the file is valid
      if(file_exists($path . $_GET['image'])) {
        // If an image exists then display image
        echo '<img src="'. $_GET['image'] . '" />;
      }
    }
    ?>
    

    Below this script you can put all your thumbnails the way you want. Ofcourse, also for these thumbnails there are some automated options. But I strongly suggest you get a good look at the script above and some beginner PHP tutorials so you completely understand the example given. This still isn’t the best method, but it’s kicking you in the right direction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using sorl-thumbnail to get some images to crop. I have a model looking
I have a image thumbnail function that basically just re-sizes the image and outputs
I have an multiple image upload script, it resizes images and creates a thumbnail.
Hey all, I have a list of 4 thumbnail images. When one of these
I'm working on a thumbnail page for an image gallery. Thumbnail previews are done
I would like to have a div which changes its content on the page
I have this web page I'm developing that displays multiple images of one product
I have some strange problem with PIL not resizing the image. from PIL import
I have an app which uses some usercontrols. I want to take a thumbnail
I have some thumbnails that I display with a Repeater, using a hyperlink and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.