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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:39:57+00:00 2026-05-27T16:39:57+00:00

I am editing my question after in depth searching about my problem basically my

  • 0

I am editing my question after in depth searching about my problem basically my website is a fashion display website it displays shoes cloths and bags etc now its obvious that i will be having lots of pics i was solving my problem with jquery and javascript that when a user clicks a thumbnail on the index page or he goes to the menu and clicks the shoes link javascript opens the larger image in a new tab but now i m switcing to php what i did is below

  1. I made a mysql database having paths to the images like images/zara/thumbnails/shoes for thumbnails and images/zara/shoes for the larger images

  2. when the user clicks on the links for ex(shoes) the link text will be grabbed by jquery like this

       $(document).ready(function() {
        $('ul.sub_menu a').click(function() {
            var txt = $(this).text();  
                $.ajax({
                type: 'POST',
                url: 'thegamer.php',
                data: {'txt'}
                });
        });
    });
    

Further pass it to the php file now here i m facing a problem what i need at the moment is

that how will php make search on the basis of that var txt in the database retrieve the thumbnails of the shoes open a new tab say(shoes.html) and display all the available shoes thuumbnails in divs

  • 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-27T16:39:58+00:00Added an answer on May 27, 2026 at 4:39 pm

    Css:

    #imagePopup{ float:left; z-index:10; position: absolute;} 
    

    Add some positioning

    HTML:

    <div id="prodtwoid" class="prodcls">
    <img src="images/thumbnail/zara/2.png" alt="ZARA"/>
    </div>
    
    <div id="prodthreeid" class="prodcls">
    <img src="images/thumbnail/puma/1.png" alt="PUMA"/>
    </div>
    
    <div id="prodfourid" class="prodcls">
    <img src="images/thumbnail/hermes/1.png" alt="HERMES"/>
    </div>
    //This is you popup div
    <div id='imagePopup' style='display:none'>
    </div>
    

    JS:

    $('.prodcls').click(function(){
       var src = $(this).attr('src').replace('/thumbnail', '');
        $("#imagePopup").html("<img src='"+src+"'/>")
        $("#imagePopup").toggle();
    });
    

    Updated answer:

    HTML: (give every image a link):

    <a href='showImage.php?img=path/of/image.jpg'><img src='path/of/thumb.jpg'/></a>
    

    showImage.php:

    $sImagePath = $_GET['img'];
    echo "<div class='imgDiv'>";
    echo "<img src='$sImagePath' />";
    echo "</div>;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am posting this question after reading other similar questions about my problem but
I've editing this original question as I think I've narrowed down the problem... I
After editing my old question a few times, I make a new one because
when the user finishes editing, i get the DTN_USERSTRING - begs the question when
This should be an easy one for someone. After editing the HTML in Firebug,
Edited: (after seeing Luke's answer) I'm looking to develop a website and all the
My question comes from a problem which I have right now. I have MainWindow,
I have a question regarding editing/saving data in database using Django. I have template
This question is about how to best name RSpec example groups and examples in
I am slowly moving into Silverlight from asp.net and have a question about how

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.