$update = mysql_query("UPDATE `".$prefix."sait` SET `hosts` = `hosts`+1, `hits` = `hits`+2, `out` = `out`+1"); $saits = mysql_query("SELECT * FROM `".$prefix."sait`"); while($row = mysql_fetch_array($saits)) { } mysql_query("OPTIMIZE TABLE `".$prefix."out`"); mysql_query("OPTIMIZE TABLE `".$prefix."hits`"); mysql_query("OPTIMIZE TABLE `".$prefix."hosts`"); mysql_query("OPTIMIZE TABLE `".$prefix."sait`");