I've read several posts about sending data to a URL...
... but I can't seem to make it happen.
Above is the Construct3 event sheet. I have this 'game' running online (it's not a preview).
The php it is trying to connect with is:
<?php
if (isset($_GET['score'])){
$score=$_GET['score'];
$user=$_GET['user'];
include ('connect_db.php');
$sql=mysqli_query($con, "INSERT INTO construct3 (user,score) VALUES ('$user','$score')");
if($sql){
//The query returned true - now do whatever you like here.
echo 'Your score was saved. Congrats!';
}else{
//The query returned false - you might want to put some sort of error reporting here. Even logging the error to a text file is fine.
echo 'There was a problem saving your score. Please try again later.';
}
}else{
echo 'Your name or score wasnt passed in the request. Make sure you add ?name=NAME_HERE&score=1337 to the tags.';
}
mysqli_close($con);
?>
Nothing happens when I click the OK button... I can't see why!
Can anyone help please?