<?php
function get_data($a,$dbh){
$_SESSION['quiz_id'] = $_SESSION['numbers'][$a];
$sql = "SELECT question, choice1, choice2, choice3, choice4 FROM {$_SESSION['quiz']} WHERE quizid=?";
$stmt = $dbh->prepare($sql);
$stmt->bindParam(1, $_SESSION['quiz_id']); //Associa a array i valori dell'array
$stmt->execute();
global $row = $stmt->fetch();
}
- Output for 7.0.0 - 7.0.19, 7.1.0 - 7.1.5
- Parse error: syntax error, unexpected '=', expecting ',' or ';' in /in/RN9MR on line 9
Process exited with code 255.
preferences:
169.74 ms | 1395 KiB | 33 Q