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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:44:29+00:00 2026-06-17T22:44:29+00:00

I grab data from my server and want them to display like this: And

  • 0

I grab data from my server and want them to display like this:

http://gyazo.com/3ed9349af4a0c3eb9fe9492b74104526

And instead, this happens:

http://gyazo.com/2c7960ff62c35723b444545476e1d99c

I use PHP for the values:

<table border="0" cellspacing="0" cellpadding="0">
        <tr> 
            <td>
                Player Name
            </td>
            <td >
                PK Level
            </td>
            <td>
                Kills
            </td>
            <td>
                Experience
            </td>           
        </tr>

        <tr>
            <td >
                    <?php
                        $result = mysql_query("SELECT * FROM high ORDER BY Runecraftlvl DESC LIMIT 20");

                        while($row = mysql_fetch_array($result))
                          {
                          echo $row['Runecraftlvl'];
                          echo "<br />";
                          }
                    ?>
            </td>
            <td>
                    <?php
                        $result = mysql_query("SELECT * FROM high ORDER BY Runecraftlvl DESC LIMIT 20");

                        while($row = mysql_fetch_array($result))
                          {
                          echo $row['Runecraftlvl'];
                          echo "<br />";
                          }
                    ?>
            </td>
            <td>
                    <?php
                        $result = mysql_query("SELECT * FROM high ORDER BY Runecraftlvl DESC LIMIT 20");

                        while($row = mysql_fetch_array($result))
                          {
                          echo $row['Runecraftlvl'];
                          echo "<br />";
                          }
                    ?>
            </td>
            <td>
                    <?php
                        $result = mysql_query("SELECT * FROM high ORDER BY Runecraftlvl DESC LIMIT 20");

                        while($row = mysql_fetch_array($result))
                          {
                          echo $row['Runecraftlvl'];
                          echo "<br />";
                          }
                    ?>
            </td>           
        </tr>

    </table>

Why is this happening? How can I make the data go on separate rows, 4 data each row?

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

    Before giving away any code, I’ll give you a few hints.

    Since you’re not getting my point… You should add a counter yourself, and check whether or not you have to close the row.

    But… Because you want 4 values in one cell, you will have to write them to temporary variables. You would need 4 variables: player_name, pk_level, kills and experience. When you’ve read out every 4th row of your query result, write them to the table.

    ($counter % 4) == 0 will be the main if-clause in your code. This will be true whenever the remainder of the division $counter / 4 is 0.

    Also remember: you only need to perform your query once.

    Give it a try first, and let us know what you come up with.

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

Sidebar

Related Questions

I want to use a web service and grab the data from the service.
I want to use $document to grab a server value from an input field.
What are the default argv data types? I want to grab 2 arguments from
I'm trying to grab multiple rows from SQL Server and then manipulate them in
i have a short script where i'm trying to grab data from a URL
i have a task - i must grab some data from the URL. the
So I'm writing an android app that needs to grab book price data from
I'm using Delayed_Job to grab a Twitter user's data from the API, but it's
Is it possible to grab the stdout output data from command line tools in
I have a web application that uses AJAX to grab JSON data from the

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.