Is it possible to create and run a thread in PHP?
<p>When a PHP page is displayed then I want to start a thread searching for the last value entered in a MySQL table column so that the value of a text input field should be this last value incremented by 1 (it's a number). I want a thread because the page may be displayed for a long time and during that time the column may has been updated many times, so I want to get the value each period of a time interval. When clicking the submit button then the value should be last one in the column. Is that possible ?</p>

<hr>

<p>Consider this scenario :</p>

<p>one user displays the page , so the field contains the incremented value. Then another user displays the same page, so the field contains also the same incremented value. When they submit the form then there is concurrency problem because they submit the same incremented data ! So how to resolve that situation ?</p>
