File: TestHelpers.php

package info (click to toggle)
phpreports 0.3.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 620 kB
  • ctags: 1,149
  • sloc: php: 2,668; xml: 157; makefile: 29; python: 10; sh: 2
file content (18 lines) | stat: -rw-r--r-- 309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

/* Send the array of query strings ($queries) to the DB connection given in
 * $db.
 */
function BulkQueries($queries)
{
	global $globals;
	
	foreach ($queries as $q)
	{
		$globals->db->query($q);
		if ($globals->db->err())
		{
			die($globals->db->error()."\n".$globals->db->errinfo()."\n");
		}
	}
}