$st_k = mysql_result(mysql_query("SELECT COUNT(*) FROM `table` WHERE `id` = '" . $row['id'] . "'"), 0);