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

  • Home
  • SEARCH
  • 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 7862083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:59:28+00:00 2026-06-02T22:59:28+00:00

I want to know how to show multiple image in a table like as

  • 0

I want to know how to show multiple image in a table like as given format

1stimage    2nd image   3rd image
4thimage    5th image   6th image
7thimage    8thimage    ........

These images are coming from a database.There may be many images in the database.

Please help me?

  • 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-02T22:59:30+00:00Added an answer on June 2, 2026 at 10:59 pm

    To achieve something like this:

    enter image description here

    You can easily make things configureable by wrapping it into an iterator of it’s own that provides rows and columns:

    /**
     * function to fetch one row from database
     */
    function fetch_row($resultSet = NULL) {
        static $result;
        static $i = 0;
        if ($resultSet) {
            $result = $resultSet;
            return;
        }
        return mysql_fetch_assoc($result);
    }
    
    fetch_row($result1); // initialize fetch function
    
    $it = new FetchIterator('fetch_row');
    
    $table = new TableIterator($it, 5);
    
    if ($table->valid()) : ?>
    
    <table border="1">
    
        <?php foreach ($table as $row => $columns) : ?>
    
            <tr class="<?php echo $row % 2 ? 'odd' : 'even'; ?>">
    
                <?php foreach ($columns as $index => $column) : ?>
    
                <td>
                    <?php if ($column) echo $column['aaa'], ' ', $column['bbb']; ?>
                </td>
    
               <?php endforeach; ?>
    
            </tr>
    
        <?php endforeach; ?>
    
    </table>
    
    <?php endif;
    

    Some Demo and see as well Some PHP Iterator Fun.

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

Sidebar

Related Questions

I want to show multiple image in each cell of TableView which is coming
i want know how i can manage multiple twitter account on iOS in my
want to know why String behaves like value type while using ==. String s1
Ok, I know what I am doing and I purposely want many multiple scripts
I want to create some links in single image.I know we can do it
I want to give a spinning gif image for the user to know something
i have this facebook page: LINK And i want to implement multiple facebook like
I want to show multiple lines with different text styles for each item in
I would like to know what is the best way to place multiple, small(all
i want know if is possible, to get a specific element value of a

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.