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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:35:30+00:00 2026-06-08T07:35:30+00:00

I want to save cnt1 and tim into MySql database. I understand that Javascript

  • 0

I want to save cnt1 and tim into MySql database. I understand that Javascript is the client side while PHP is the server side and the available options are to use the POST GET and COOKIE method. But I can’t seem to apply in my code.

It is actually a memory game from http://www.hscripts.com/scripts/jquery/memory-game.php, to play the game the link is http://www.hscripts.com/scripts/jquery/memory-game.php. I want to save the time taken and number of moves.

Any advice? Please and thank you very much.

function finish()
{

var cnt1 = $("#counting").val();

var tim=$("#timecount").val();

alert("Congratulations! You have won the game Total Move : "+cnt1+"   Time : "+tim+" seconds");

    if(confirm("Do you want to play again"))
    {
        stopCount();
        window.location.href="index.php";
    }
    else
    {
        window.location.href="leaderboard.php";
    }
}
  • 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-08T07:35:31+00:00Added an answer on June 8, 2026 at 7:35 am

    just sent them over to php page by concatenating in url

    if(confirm("Do you want to play again"))
        {
            stopCount();
            window.location.href="index.php?cnt1="+cnt1+"&time="+tim;
        }
        else
        {
            window.location.href="leaderboard.php?cnt1="+cnt1+"&time="+tim;
        }
    

    and access on php page as

    $_GET['tim'];
    $_GET['cnt1'];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Save my cookie data to MySQL database? I want save data into
I want to save many pictures into a SQL Server database file. How can
I want to save my canvas into MySQL database (BLOB cell). I have function
I want to save some data into sqlite database and the read it, there
I want to save Json into two variables so that I can manipulate one,
I want to save the following NSDictionary to a MySQL database: NSDictionary notesDictionary: object:
I want to save the arabic word into oracle database. User type a arabic
I want to save userid and password in a MySql database for my WinForms
I want to save files from an external server into a folder on my
I want to save a remote img-file to my server, but I don't know

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.