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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:55:49+00:00 2026-05-22T12:55:49+00:00

I have this block of PHP and HTML: <table width=57% border=0 class=tabela_master id=aps-cat> <tr>

  • 0

I have this block of PHP and HTML:

<table width="57%" border="0" class="tabela_master" id="aps-cat">
<tr>
<?php    
while ($row = $db->sql_fetchrow($result_1))
{
      echo '<td width="33%" rowspan="12" align="center"><img src="../images/' . $row['picture'] . '" /></td>';
      echo '<td width="20%" align="right" class="tabela_master" style="font-weight: bold">Emri / Mbiemri:</td>';
      echo '<td width="1%">&nbsp;</td>';
      echo '<td width="46%" class="tabela_master">' . $row['firstname'] . " " . $row['lastname'] . '</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">Gjinia:</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">' . $row['gender'] . '</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">Datelindja:</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">' . $row['birthday'] . '</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">Adresa / Lokacioni:</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">' . $row['location'] . '</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">Telefoni:</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">' . $row['telephone'] . '</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">Email adresa:</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">' . $row['email'] . '</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">Interesi:</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">' . $row['occupation'] . '</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">&nbsp;</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">&nbsp;</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">&nbsp;</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">&nbsp;</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">&nbsp;</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">&nbsp;</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">&nbsp;</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">&nbsp;</td>';
      echo '</tr>';
      echo '<tr>';
      echo '<td align="right" class="tabela_master" style="font-weight: bold">&nbsp;</td>';
      echo '<td>&nbsp;</td>';
      echo '<td class="tabela_master">&nbsp;</td>';
}
//$db->sql_freeresult($result_1);
?>
</tr>
</table>

Now what I want is multiple records shown in the page. The web currently looks like this:
Current look

And what I want would look like this:
Wanted look

So my table would provide all my results from my MySQL query which looks like this:

$sql_1 = 'SELECT id, firstname, lastname, birthday, location, occupation, gender, telephone, email, picture 
          FROM pinkmoon_users ORDER BY `id` DESC LIMIT 1';
$result_1 = $db->sql_query($sql_1) or die($db->sql_error());
  • 1 1 Answer
  • 1 View
  • 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-22T12:55:49+00:00Added an answer on May 22, 2026 at 12:55 pm

    Remove the LIMIT 1 in your SQL statement

    $sql_1 = 'SELECT id, firstname, lastname, birthday, location, occupation, gender, telephone, email, picture 
              FROM pinkmoon_users ORDER BY `id` DESC ';
    $result_1 = $db->sql_query($sql_1) or die($db->sql_error());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dropdown menu with this HTML: <ul id=dropdownmenu class=dropdown maintopmenu> <li class=topmenu
I have this block of html: <div> <p>First, nested paragraph</p> </div> <p>First, non-nested paragraph.</p>
I have a function in php that builds an html string for a table
Actually I have this piece of HTML code <form method=POST action=dosomething.php> <fieldset> <legend>My account</legend>
Well i have this set of codes <?php include includes/config.php; class template{ var $page;
I have a form which generates an HTML table using a PHP script on
I have something like this: <img class=side_image right id=side_image src=http://path/to/file_large.jpg width=300 height=210 onload=document.getElementById('loading_gif').style.display =
i have this block of xslt if-else case and was wondering if there's a
I have this block of code: users = Array.new users << User.find(:all, :conditions =>
I have this block of xaml that allows the text of a hyperlink to

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.