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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:46:38+00:00 2026-05-28T19:46:38+00:00

I am working on a site that needs to display inventory data. I am

  • 0

I am working on a site that needs to display inventory data. I am using these fields in my table (Product_Name, Product_Type, Product_Price, Product_Image). I am able to get all of this info uploaded via PHP (I am storing the images in a folder and not in the database via BLOB). I can get it to display the first 3 columns (Name, Type, Price). I can’t get it to display the image. I have read that I cannot display binary data as well as other field types because of the header declaration. I know how to do the thumbnail with PHP. I want the thumbnail to be clickable with a lightbox type deal showing the full size image.

I had a screenshot to show what I am trying to do, but I am not able to because I am new to this site.

I have found numerous tuts on how to upload files, how to display images from either a folder or a BLOB, but I have not found an answer to what I am trying to do.

Is it even possible through PHP to do a SELECT * from table and display all fields in a table, including a thumbnail which is clickable to display full size image.

I am hoping that someone can point me in the right direction, either a tutorial or someone who could show me some sample code.

Thanks!

  • 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-28T19:46:39+00:00Added an answer on May 28, 2026 at 7:46 pm

    How are you storing the image info in your database? A link? Something else? To display the image, output the link location via MySQL and output it on the page. You’ll need to use a lightbox library to display it in a lightbox pop-up window.

    ie…

    in your table you have:

    images/myimage.jpg
    

    On your page use something like:

    <?php
    echo "<img src='$image' alt='something' /> ";
    ?> 
    

    You’ll need to define $image somewhere after you connect to you db.

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

Sidebar

Related Questions

I'm working on a site that is using Facebook Connect and recently made some
I'm working on a site that uses JQuery UI to display some tabs and
I have a site that I am currently working on in ASP.NET 2.0 using
I am working on a site (ASP.NET MVC) that will ultimately display millions of
I'm working on a php site that needs both Japanese and English. In most
I my working on the site that will have image gallery. Designer idea was
I'm working on a site that pulls various public RSS feeds down. I want
I am working on a site that require a php script running on a
I am working on a site that lists a directory of various restaurants, and
I'm working on a site that can be displayed to the user in several

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.