got it. Your PHP code to increse your counter is:
<?php
$servername = "localhost";
$username = "root";
$password = "";
$db_name = "route";
// Create connection
$mysqli = new mysqli($servername, $username, $password, $db_name);
// Check connection
if ($mysqli->connect_error) {
die("Connection failed: " . $mysqli->connect_error);
}
$sql = "UPDATE quizes SET count = count + 1 WHERE id = QUIZ_ID"; // be careful from injections again!
if($mysqli->query($sql) === true){
echo "Done";
}else{
echo "Error: " . $mysqli->error;
}
$mysqli->close;
?>
4
solved view how many people compelete the quiz on admin panel [closed]