Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 0    Views: 46

Electronincantation
Android Fan
Profile
Posts: 35
Reg: Dec 26, 2011
Accrington
350
07/02/12 03:09 AM (13 years ago)

Quiz not sending data in version 2.00 on android.

Hi I am using the script below to save quiz scores to a database from the version 2.0 quiz,the script works OK with dummy data but the quiz does not seem to be sending data to the script,when the quiz ends,which part of the code in Buzztouch deals with this? <?php //data from buzztouch url $e = $_GET["totalPoints"] ; //total points, get $p = $_GET["numberOfQuestions"] ;//number of questions, get $d = $_GET["numberCorrect"] ;//number correct, get $email = $_GET["email"] ;//email, get // Include the configuration file for error management and such. require_once ('./includes/config.inc.php'); require_once ('mysql_connect.php'); // Connect to the database. // Add the score data. $query = "INSERT INTO scores (totalPoints, numberOfQuestions, numberCorrect, email) VALUES ('$e', '$p', '$d' , '$email')"; $result = mysql_query ($query) or trigger_error("Query: $query\n<br />MySQL Error: " . mysql_error()); ?> <p>total points =<?php echo $e;?></p> <p>Number of Questions =<?php echo $p;;?></p> <p>Number Correct =<?php echo $d;?></p> <p>email=<?php echo $email;?></p> I am using the URL below to send data via the control panel. http://www.transporthistory.net/shindig_backend/score_process.php?totalPoints=[totalPoints]&numberOfQuestions=[numberofQuestions]&numberCorrect=[numberCorrect]&email=[userEmail] any ideas? Regards,Geoff.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.