2
I’m dealing with a new problem because of some new challenges...
I developed a registration system and obviously in the future may have more than 100 registrations per day or even per hour or second. Thinking about it, I did a test on different pcs and did the registration at the same time using the two pcs, what happened was, the request of pc1 stored but the request of pc2 not.
I would like a help on how I can line up and then process orders if there are more than 1 at the same time...
Use jQuery to send the PHP form and the BD is mysql.
In PHP code is the normal code to insert data into a PDO DB
JS Code
$.post("https://servidor/pasta/codigo.php", {
nome: $nome,
idade: $idade
}, function(dado){
$("#msg").html("Inserido com sucesso");
})
Hugs and thanks in advance
Can you put here the PHP and JS you have? Unless you were able to submit the request in exactly the same millisecond, I don’t see why it could have missed one order and the other didn’t. You have to put more code...
– Sergio
@Sergio .. done... I do not believe it was in the same millisecond but the click on the two pcs, were...
– C-lio Garcia
Good also to inform what occurred in the requisition two, gave error ? Which ? Just not recorded ?
– Motta
@Motta just didn’t record!
– C-lio Garcia