Jump to content

hi guys a little advice???


lanceox

Recommended Posts

Hey everyone :)

 

A little advice would be great.  okay... I have a system that registers users and then allows them to take part in a quiz, which uses sessions and a database however what the problem is, is that i would like the user to be able to see the results of there quiz rather than destroying a session on logout.php

 

for example when they login, they will click member area for example and this will display info about the quiz they completed.... i.e. Scores

 

How would i do keep this info so its not lost on logging out??

 

Thanks in advance guys

 

Lance

Link to comment
Share on other sites

ahhh okay, however rather than storing this information through a text field I would like to do it so the user can click save button on the final page and the  quiz information is stored onto the database.

 

How could i do this?

 

:)

 

Thanks

Link to comment
Share on other sites

if you hold the scores in an array, cheat - use serialize and unserialize

$dbdata = serialize($scorearray);
$dbinject = mysql_query("INSERT INTO `tbl_dataheldhere` (`id`,`userid`,`date`,`data`)VALUES('','$userid',NOW(),'$dbdata')");

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.