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 8877397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:27:32+00:00 2026-06-14T19:27:32+00:00

So, basically I have this image gallery > http://sensemillia.com/#/pages/necklaces.php once the user clicks on

  • 0

So,

basically I have this image gallery > http://sensemillia.com/#/pages/necklaces.php
once the user clicks on one of them images he’s lead to the item.php > http://sensemillia.com/#/pages/item.php

As you can see on the left side of the box, there is an image and on the right, there’s text.

What I’d like to do, is tell to dynamically item.php load the content depending the url.

Moreover, if the user for example clicks on the first image in the gallery, the url should look like this > …item.php?id=01 and then accordingly the content of the box should load image01.jpg on the left column, and div01 on the right.

I’ve searched a lot for this, but all I find are complicated asp or .net answers.
Is there a simple way?

Thank you very much in advance. Any help would be greatly appreciated.


ANSWER

<?php $actual_link = "$_SERVER[REQUEST_URI]"; 
if ($actual_link == "/pages/item.php?id=11") {
print ("<img src='../Sensemillia/sousou.jpg' id='jack' width='392' 
height='475' alt='Daisy on the Ohoopee'/>");    
}
else if ($actual_link == '/pages/item.php?id=12') {
print ("<img src='../Sensemillia/second.jpg' id='jack' width='392'
height='475' alt='Daisy on the Ohoopee'/>");    
}
?>
  • 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-06-14T19:27:33+00:00Added an answer on June 14, 2026 at 7:27 pm

    You can use session variables or use POST to send data between the pages and fetch the data from your database

    How do I pass data between pages in PHP?

    PHP Pass variable to next page

    Edit:
    Maybe you’ll want to start here:
    http://www.homeandlearn.co.uk/php/php.html

    It will give you basic understanding of php and allow you implement that feature on your site.

    Also when you’re comfortable with mysql queries you’ll want to replace them with PDO

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

Sidebar

Related Questions

Having some issues, basically I have a random image gallery. This is the code
Basically what I have is an image gallery. Just tried to create one for
So I wanted to have something like in this image . Basically you have
Basically I have this problem. I have an accordion that toggles one heading open
I basically have three tables, posts, images and postimages (this simply contains the ids
I have this error that is keeping me from moving forward. I basically have
Basically I have this string for example $str = 'По, своей 12' I need
Basically I have this string $str=word1 word2 word3; I need array( 'word1', 'word2', 'word3'
So basically I have this giant regular expression pattern, and somewhere in the middle
Ok, so basically I have this part of the .htaccess partly working, but not

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.