Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | daniel-mar | 1 | #!/usr/bin/php |
2 | <?php |
||
3 | |||
4 | require_once __DIR__ . '/includes/db.inc.php'; |
||
5 | require_once __DIR__ . '/includes/src.inc.php'; |
||
6 | |||
7 | $min = 1; |
||
8 | |||
9 | $res = db_query("select max(id) as cnt from stam_entries"); |
||
10 | $row = db_fetch_array($res); |
||
11 | $max = $row['cnt']; |
||
12 | |||
13 | echo "Search gaps between $min and $max\n"; |
||
14 | |||
15 | for ($i=$min; $i<=$max; $i++) { |
||
16 | |||
17 | $res = db_query("select count(*) as cnt from stam_entries where id = $i"); |
||
18 | $row = db_fetch_array($res); |
||
19 | if ($row['cnt'] != 1) echo "Fehler: $i\n"; |
||
20 | |||
21 | } |
||
22 | |||
23 | echo "Finished searching for gaps\n"; |