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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:07:03+00:00 2026-05-30T03:07:03+00:00

my aim is to pull data from mysql and print it in html table.

  • 0

my aim is to pull data from mysql and print it in html table. asumming that 1,2,3…8 are the data

<table style="width: 100%">
 <tr>
 <td>1</td>
 <td>2</td>
 <td>3</td>
 <td>4</td>
</tr>
 <tr>
 <td>5</td>
 <td>6</td>
 <td>7</td>
 <td>8</td>
 </tr>
</table>

this is the code i have so far but this will only print out the column but no the row. plz help. thank you

<table style="width: 100%; color:aqua">
<?php               
$showFoto = getFoto();
echo '<tr>';
foreach($showFoto as $Foto){
echo '<td class="afs"><img alt="" src="img/'.$Foto['img'].'.'.$Foto['ext'].'"><br>'.$Foto['about'].'</td>';
}
echo '</tr>';
?>
</table>
  • 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-30T03:07:04+00:00Added an answer on May 30, 2026 at 3:07 am

    TRY

     <table width ="100%" style="color:aqua" cellpadding="2" cellspacing="2">
        <tr>
     <?php               
        $showFoto = getFoto();
        $i=0;
        foreach($showFoto as $Foto){
          ++$i;
          echo ($i%4==0) ? '</tr><tr>' :'';
          echo '<td class="afs">
                <img alt="" src="img/'.$Foto['img'].'.'.$Foto['ext'].'">'.$Foto['about'].
               '</td>';         
        }
        ?>
        </tr>
     </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Aim: Calling a very slow stored procedure (with parameters) asynchronously from code behind of
My aim is to retrieve some data from a global array which is defined
My aim is to retrieve some data from a global array which is defined
The aim is to transfer raw binary data from one sip client to another
Aim I am looking to scrape 20/20 cricket scorecard data from the Cricinfo website
I aim to filter my Google results right at terminal such that I get
my aim is to invoke a shell script from a PHP program and then
The aim is to be able to switch debugging calls on at run-time from
I aim to toggle the status number in the contacts table in the contact_status_id
Should we aim for DRY, in the sense that changes to the functionality affect

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.