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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:57:59+00:00 2026-06-09T07:57:59+00:00

I am using php, html, css to create a bingo game (There will be

  • 0

I am using php, html, css to create a bingo game (There will be nxn boxes. It will be filled in random order for 2 players. Players has to select numbers one by one. One who fills up rows or columns or diagonals five times wins the game).

I created player1.php and player2.php. I am having 9 boxes and populating it from databases. If user clicks a button I’ll update the corresponding values as 0 so that when page loads I’ll disable the button if the text is 0.

If player1 clicks a button in player1.php, it should reflect in player2.php. How can I do that? Is that possible by reloading page every second? Is it good to do that?

  • 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-09T07:58:01+00:00Added an answer on June 9, 2026 at 7:58 am

    As short answer: no it is not.

    Pure PHP is not the most suited for interactive game like that but there are few things you can do.

    You could use javascript with Ajax to do this. Let’s say you have X players (each using playerX.php although i would put it into player.php and determine each player by GET parameter or something). When one of the player clicks a link, it goes a server-side script, in PHP (possibly using Ajax if you want), that updates your database.

    Now the tricky, each player page ‘asks’ the server every certain amount of time for the state of the game, and updates the page accordingly. The easiest way to do this is create a script (lets call it state.php) that will output data from your database using JSON. You can read the request using ajax and update your page using javascript.

    I suggest you read about jQuery and Ajax (which can be also used with jQuery).

    If you want to avoid having to refresh the page each time, learning javascript and ajax is your best bet.

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

Sidebar

Related Questions

I'm trying to create css buttons by using the following html markup: <a href=access.php
I'm looking to create on-the-fly tree diagrams using PHP, HTML, and CSS. Mock-up below:
I am creating my first site from scratch using PHP, MySQL, CSS, HTML, and
I have built a website using php and simple HTML/CSS for a client. In
I am teaching myself web development, and right now I'm using HTML/CSS/PHP, but I
I am using PHP and MySQL (html and CSS aren't the big deal) and
I am using PHP Simple HTML DOM Parser and it is consuming a lot
I am learning scraping using the PHP Simple HTML DOM Parser and Xpath. Accroding
I'm using PHP/Zend to load html into a DOM, and then I get a
i am using php 5.2.8 i have index.html, which loads LOAD.PHP from IFRAME. iframe

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.