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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:20:58+00:00 2026-06-04T03:20:58+00:00

I have a php website like this: .———————. |title stats | | | |generate&display

  • 0

I have a php website like this:

.---------------------.
|title          stats |
|                     |
|generate&display data|
|                     |
| show table of data  |
|                     |
| php generate stats  |
|_____________________|

The php at the bottom of the page analyzes the data that was generated in the table and all the stats variables are created at the bottom of the page.

I want to create a quick summary of the data like “how many times x occurred” etc, and put it at the top-right of the page (stats), but that data is known after the table is generated at the bottom of the page.

Without duplicating code, how can I retrieve these variables that are not generated yet and place them at the top-right of the page? Or with CSS or HTML, can I make a box float or similar to the top right of the page?

What’s the best approach to this problem?

EDIT: I’m not asking how to generate the stats, I’ve already done so at the bottom of the page but want to display them at the top of the page.

  • 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-04T03:20:59+00:00Added an answer on June 4, 2026 at 3:20 am

    You’re asking two separate questions here.

    1.

    Using only HTML/CSS, I want to create a quick summary of the data like "how many times x occurred [...] but that data is known after the table is generated at the bottom of the page.

    Why do you want to do this with only CSS? Some simple jQuery JS (e.x. $("element.class").size()) will tell you the amount of element.class on the page. However, you’re being extremely vague about what kind of “stats” you want to display. Or, why do it on the front end at all? With PHP, just get the count() of the amount of array elements of the stats you are counting.

    2.

    with CSS or HTML, can I make a box float or similar to the top right of the page?

    div.box{
        position:absolute;top:25px;right:25px;padding:10px;
    }
    

    Once again, you’re being very vague about what you want to do here. Assuming you want the stats to stick to the top of the page as the user views the data, this code will keep it at 25px from the top and right.

    Edit:

    Use the CSS code I showed, then make the div at the bottom with the stats display:none;. Then, just use:

    $("div.box").html($("div.stats").html());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently i have url parameters like this http://www.website.com/index.php?user&page=edit And in index.php i have set
My website file structure currently looks like this: marketplace.php cats.php On marketplace.php I have
On my website I have created my pages like so: http://www.website.com/page1.php http://www.website.com/page2.php http://www.website.com/page3.php This
I've used this code to have a like btn on my site: <iframe src=http://www.facebook.com/plugins/like.php?href=URL_OF_YOUR_WEBSITE&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80&amp
i have a script like this : <html> <body> <?php require("wrongFile.php"); echo "Hello World!";
i am making a website in php i make left menu like this these
We have a PHP website like reddit, users can vote for the stories. We
I would like to have my PHP website destroy a users session if they
i have a php script like this: <?php $likes = 'https://graph.facebook.com/google'; $fb = file_get_contents($likes);
I have a PHP script like this: <?php include 'authorization_script.php'; foreach ($_POST as $key

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.