// Retourner les dates en JSON
header('Content-Type: application/json');
echo json_encode($disponibilites);
Why Your where clause in your select contains only one parameter and your URL four ?
It is very strange that it returns complete content ({"tag":"342G" })and this error message appears.
What I'm asking is that in the url you created there are 3 parameters + a token and it calls the php script padellit.php. And the content of padellist.php that you showed, the SQL command uses only 1. So this is just a part of the script, and not the complete content of the script, right?
if ($result && $result->num_rows > 0)
{
while ($row = $result->fetch_assoc())
{
$disponibilites[] = [
"tag" => $row['tagm']
];
}
} else {
$disponibilites[] = [
"tag" => "error: No data found for the provided ID."
];
}
and do a test to force the error.....