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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:22:54+00:00 2026-06-16T04:22:54+00:00

I have a small blog that I am creating. It gets its information from

  • 0

I have a small blog that I am creating. It gets its information from a database. I would like to show the users that are logged in that someone else has just entered a new comment. I have created 3 pages: old_count, new_count, posts. I was going to create a session for both new_count and old_count and subtract them in posts. The result would have been displayed in a div to the user. This idea I have scrapped because both old_count and new_count would have the same information, so the result in posts would have always been 0. What I am looking for is something like Twitter where if there is a new entry, a div appears displaying –1 New post–. I have being looking for a way to do this. Can someone please help me. (Note – please explain script given in full….Thanks In Advance!!!!)

  • 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-16T04:22:56+00:00Added an answer on June 16, 2026 at 4:22 am

    Set a timestamp of the last time they checked for content.

    then, using javascript, poll the server (SELECT * FROM posts WHERE created_timestamp > {$last_checked_timestamp}

    If result > 0 then display count.

    Update timestamp.

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

Sidebar

Related Questions

I am creating a wordpress blog that has small boxes for each post thumbnail.
I have a div at the top of my page that gets its height
I have been using twitter bootstrap to build a small blog site for myself
have small problem, and would very much appreciate help :) I should convert byte
I have small database of business and their addresses. Using the Google Geocode API
I have small web app that generate PDF files as a report. I'm trying
I have a small custom blog type site and I keep track of my
So I have a small PHP script that generates an xml feel for the
I have a small multithreaded script running in django and over time its starts
I have a very small, simple sqlite database, and several python scripts to access

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.