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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:37:17+00:00 2026-06-10T00:37:17+00:00

I have added images to a database using there directory path as one field

  • 0

I have added images to a database using there directory path as one field in a row and the file extension as another field in a row.

Table code:

CREATE TABLE chinaletting (
    id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    category TEXT NOT NULL,
    title TEXT NOT NULL,
    image BLOB NOT NULL,
    imageext TEXT NOT NULL,
    floorroom TEXT NOT NULL,
    spacesize TEXT NOT NULL,
    available TEXT NOT NULL,
    contactname TEXT NOT NULL,
    contactnumber TEXT NOT NULL,
    email VARCHAR(32) NOT NULL DEFAULT 'noemail@test.com'
);
CREATE INDEX "id" ON "chinaletting" ("id");

displaying of table:

<dl>
    <?php foreach ($this->entries as $entry): ?>
    <dt><?php echo $this->escape($entry->category) ?></dt>
    <dd><?php echo $this->escape($entry->title) ?></dd>
    <dd><?php echo $this->escape($entry->image), $this->escape($entry->imageext)  ?></dd>
    <dd><?php echo $this->escape($entry->floorroom) ?></dd>
    <dd><?php echo $this->escape($entry->spacesize) ?></dd>
    <dd><?php echo $this->escape($entry->available) ?></dd>
    <dd><?php echo $this->escape($entry->contactname) ?></dd>
    <dd><?php echo $this->escape($entry->contactnumber) ?></dd>
    <dd><?php echo $this->escape($entry->email) ?></dd>
    <?php endforeach ?>
</dl>

on screen display:

enter image description here

What want to display really is the picture can anyone help

  • 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-10T00:37:18+00:00Added an answer on June 10, 2026 at 12:37 am

    Try:

    <dl>
        <?php foreach ($this->entries as $entry) {
          if($this->escape($entry->category) == 'pacific') { ?>
            <dt><?php echo $this->escape($entry->category) ?></dt>
            <dd><?php echo $this->escape($entry->title) ?></dd>
            <dd><img src="<?php echo $this->escape($entry->image), $this->escape($entry->imageext)  ?>"></dd>
            <dd><?php echo $this->escape($entry->floorroom) ?></dd>
            <dd><?php echo $this->escape($entry->spacesize) ?></dd>
            <dd><?php echo $this->escape($entry->available) ?></dd>
            <dd><?php echo $this->escape($entry->contactname) ?></dd>
            <dd><?php echo $this->escape($entry->contactnumber) ?></dd>
            <dd><?php echo $this->escape($entry->email) ?></dd>
        <?php }} ?>
    </dl>
    

    For 2 categories:

    <dl>
        <?php foreach ($this->entries as $entry) {
          if($this->escape($entry->category) == 'shoes' || $this->escape($entry->category) == 'dress') { ?>
            <dt><?php echo $this->escape($entry->category) ?></dt>
            <dd><?php echo $this->escape($entry->title) ?></dd>
            <dd><img src="<?php echo $this->escape($entry->image), $this->escape($entry->imageext)  ?>"></dd>
            <dd><?php echo $this->escape($entry->floorroom) ?></dd>
            <dd><?php echo $this->escape($entry->spacesize) ?></dd>
            <dd><?php echo $this->escape($entry->available) ?></dd>
            <dd><?php echo $this->escape($entry->contactname) ?></dd>
            <dd><?php echo $this->escape($entry->contactnumber) ?></dd>
            <dd><?php echo $this->escape($entry->email) ?></dd>
        <?php }} ?>
    </dl>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database of company registrants (for a search/directory functionality). We've added a
I have slideshow, and I want to show Big images, I added to [NSOperation
I have added multiple image upload to my site using HTML api's. I have
I have added an image to my form's resource file, myForm.resx, and I would
I have a custom list, and I've added a 'Page Image' field by clicking
I have added a navigation controller inside a viewcontroller thats inside another navigation controller...
I'm currently using the anythingSlider it works quite well. But if there is one
I am preparing a registration page using JSF/Spring webflow&mvc application. I have added two
I have a Controller that pulls images from a database, re-sizes them, caches the
I have inherited a database that has a table (300gb) full of SQL datatype

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.