[snip] Is there any way, to put flag or something like that, when sellecting rows with php and mysql? [/snip] You would essentially have to update each row as you retrieved it from the database, which is highly inefficient...get one row, update the same row, get the next row, update it...and so on -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php