Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 3    Views: 66

Electronincantation
Android Fan
Profile
Posts: 35
Reg: Dec 26, 2011
Accrington
350
07/04/12 10:58 AM (13 years ago)

Version 2.00 quiz on android, can't read data from send results to URL

Hi I have been trying for two days to get a script to read the URL data from a version 2.0 quizzez "send results to URL" link. I have a couple of questions: How can you check that the send to URL is actually being triggered? has anybody got a test script that will save the appended data to a database? The PHP script I am using is below and works if you run it in a normal browser but not when used as the "send results to URL" links destination. <?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<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? what am I missing? This is holding up a few projects can anybody help? Regards,Geoff.
 
jontonal
Android Fan
Profile
Posts: 12
Reg: Feb 18, 2012
Nottingham
4,720
like
07/16/12 06:58 AM (13 years ago)
Hi Has anyone got a tutorial of how to get quiz results sent to a specific email address? I'm a complete novice and want to build some quiz apps - specifically Android - for the college where I work. Thanks Jon
 
jontonal
Android Fan
Profile
Posts: 12
Reg: Feb 18, 2012
Nottingham
4,720
like
07/16/12 07:10 AM (13 years ago)
Hi Has anyone got a tutorial of how to get quiz results sent to a specific email address? I'm a complete novice and want to build some quiz apps - specifically Android - for the college where I work. Thanks Jon
 
Jet1199
Veteran developer
Profile
Posts: 12
Reg: Oct 31, 2012
Dessau, Germany
3,820
like
12/02/12 02:33 AM (13 years ago)
Hallo, I'm also interested in an answer to Jon's question ... ... if there is an way to do this? The help around the edit area is meager :-( Jens
 

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.