Answer the question
In order to leave comments, you need to log in
Explain how this happens with json?
In general, there was a problem with the processing of the ajax response.
The property is considered once a string then an array of values.
I don't understand what makes him think so. You need to get exactly the array from tamines in json.
That's when it gives it right:
And this is how it sometimes gives and my pop-up window breaks because of this and the result is not displayed.
json via puff:
$obj = array("info" => "click","bombs"=>"true","pressmine" => "$mmines","info2"=>"fail","warning"= >"Alas, you stumbled upon a bomb","resultHistoryContentBomb"=>"$saad","tamines"=>"$tamines");
echo json_encode($obj);
Answer the question
In order to leave comments, you need to log in
If the code does not change, but the output is different, debug the $tamines variable
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question