Jump to content

USING DATABASE TO STORE AND RETRIEVE PAGE PROGRESS IN PHP


beadcruz

Recommended Posts

Hello people,

I have created an application in Code Charge where my site users can login and play games online.The game code is run via flash and html. The Game has 5 stages and from a page in my application called transfertogame.php , i transfer them to the game page. Now i want to be able to track each players progress via database so that when they log back in and they get to the transfertogame.php page, it can check the page they were on before and immediately take them to the page without starting from page 1. Any help will be appreciated as i am very poor with php scripting

This is the session ID i guess is being used from my application page

 

//Initialize Method @4-537EA73F

function Initialize()

{

 

if(!$this->Visible)

return;

 

$this->ds->Parameters["sesUserID"] = CCGetSession("UserID");

}

//End Initialize Method

 

//Validate Method @4-7E1FC38C

function Validate()

{

$Validation = true;

$Where = "";

$this->CCSEventResult = CCGetEvent($this->CCSEvents, "OnValidate");

return (($this->Errors->Count() == 0) && $Validation);

}

//End Validate Method

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.