Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | /* Send the array of query strings ($queries) to the DB connection given in | |
4 | * $db. | |
5 | */ | |
6 | function BulkQueries($queries) | |
7 | { | |
8 | global $globals; | |
9 | ||
10 | foreach ($queries as $q) | |
11 | { | |
12 | $globals->db->query($q); | |
13 | if ($globals->db->err()) | |
14 | { | |
15 | die($globals->db->error()."\n".$globals->db->errinfo()."\n"); | |
16 | } | |
17 | } | |
18 | } |