I need to pull from MYSQL a value , than change forward the value and insert in to the mysql.
for example :
$str = mysql_fetch_assoc(mysql_query('SELECT `str_id` FROM `ids` ORDER BY `num_id` DESC LIMIT 1 ')); // = aaa
$str = $str++; // aaa -> aab
// than check if "aab" key already exist
// if not , insert as key as "aab"
as for this algorithm there is a risk that this script runs from the two sides of the globe and two unique keys will be sign as "aab"..
how can i do this without risk of sign this unique key two times?