Jump to content

PHP + MySQL Query Queue


nightkarnation

Recommended Posts

Hey Guys, I have the following problem.

 

I have a lot of users sending querys to my DB at the same time, and for example each time a user sends the query, a field with a number increases.

Sometimes that number increases like this: 10.11, 10.12, 10.13, 10.15, 10.14

When it obviously should be: 10.11, 10.12, 10.13, 10.14, 10.15

 

Maybe (in this example) the query from 10.15 finished first (got inserted on DB) than the query from 10.14.

 

My question is if there is some kind of function or line of code to have some kind of queue between the Querys...so if a query that is received first must finish and the the next can go ahead and query.

 

Hope I am making myself clear,

 

Looking forward any kind of help and/or suggestions.

 

Thanks a lot in advance!

Link to comment
https://forums.phpfreaks.com/topic/233560-php-mysql-query-queue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.