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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:27:52+00:00 2026-05-20T03:27:52+00:00

I’m working on a PHP Jeopardy game, I need a way to find out

  • 0

I’m working on a PHP Jeopardy game, I need a way to find out how to check if a link to a question has been clicked and hide it once it has.

I also need a way to refresh the gameboard to show all question links again.

Does anybody know how i can do this?

Edit:

The setup of my game is quite simple. Users do not have to register.

You are presented with a jeopardy board from which the questions are taken from a mysql database the questions and answers are stored using get (i didn’t want to have to make multiple sql requests). When you click on the question category (e.g. Category 1, $100) it will bring you to the page that will display the question on this page is a link back to the board and a link to the answer. On the answer page there is only the answer and a link back to the board page. (makes sense to me let me know if it doesn’t)

  • 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-05-20T03:27:52+00:00Added an answer on May 20, 2026 at 3:27 am

    You can get a visited link with CSS. This is done through the so called pseudo-classes in CSS (more info on pseudo-classess here)

    So for CSS you can do something like:

    a.jeopardyquestion:visited {display: none;}
    

    And then if you want to show all the questions just do:

    $("a.jeopardyquestion").toggle(true); // to show them
    

    Big edit: There is no reliable way to do this with just CSS and JS with pseudoclasses. Seems that they are going to drop the support for the :visited property altogether from the browsers. Currently Chrome completely ignores styles for :visited links, except the color property. Even then, there is no way to sniff the color, because chrome lies and returns the color of the link, without applying the :visited rule.
    Firefox still supports the :visited pseudoclass, but it seems that this will too be dropped soon.

    So if you want to keep track of the links the user visited, you must use some combination of either javascript+cookies to track the visited links, e.g.:

    1. User visits the “dashboard”
    2. Clicks a link
    3. The question ID is stored(appended) to a cookie (for example: “5,12,22,45”);
    4. The user returns to the page
    5. Read the cookie and show only the links that are not in the cookie.

    Or you can use some AJAX to give the server information about the visited questions. That way you can achieve even more security (and cheat-prevention) by sending to the user just the questions he must see and do all the checks on the server-side, for example:

    1. User chooses a question
    2. Either AJAX call before navigating, or just put the opened question in the session when the question page loads
    3. The user returns to the question page
    4. While generating the question page, read the session and see which questions the user answered, and do not display them.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Seemingly simple, but I cannot find anything relevant on the web. What is the
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want use html5's new tag to play a wav file (currently only supported
Does anyone know how can I replace this 2 symbol below from the string
I have just tried to save a simple *.rtf file with some websites and

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.