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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:51:43+00:00 2026-06-07T07:51:43+00:00

I have a page that will need to generate thumbnail images for each article.

  • 0

I have a page that will need to generate thumbnail images for each article. The number of thumbnails will vary for each so I want to check the article in the database and create an array for all of the thumbnails but i’m struggling with the logic.

This is what I have so far:

for ($i=1; $i<20; $i++) {
  $thumbImages = array(
    'src' => $newblogDoc['tvs']['thumbnail-image-' . [$i]]
  );
}

Is this the right direction? Is there a more efficient way to put this into an array?

  • 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-07T07:51:45+00:00Added an answer on June 7, 2026 at 7:51 am

    Your question isn’t very clear but if you want to make an associative array of arrays then you need to do:

    for( $i=1; $i<20; $i++){
    $thumbImages[] = array(
                    'src' => $newblogDoc['tvs']['thumbnail-image-'.[$i]]
                    );
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script that will get images from page, but how do I
I have an ASP.NET page that I want to be able to generate and
I have a page that will basically be used to concatenate a bunch of
I have a page that will have a full size product image and 4
I'm have a page that will be used (and hence styled) only for printing.
I have a page a query that will set a table to 0 or
I have an asp.net page that calls a dll that will start a long
I have to do a asp.net web page that when load will say something
I am loading content into a page with ajax that will have live click
I'm creating a WP theme that will have two sections midway down the page.

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.