A
A
Arthur2020-10-03 19:57:21
JavaScript
Arthur, 2020-10-03 19:57:21

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:
sfPYBnztxS8.jpg
kKBt5PjkyHY.jpg

And this is how it sometimes gives and my pop-up window breaks because of this and the result is not displayed.
QM36z_i84yY.jpg

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

1 answer(s)
R
Roman Yakimchuk, 2020-10-03
@arturka_v_10

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 question

Ask a Question

731 491 924 answers to any question