Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/pre/padd.pre.inc.php
<?php

	if (isset($mod)) {
		$row = 0;
		$update = array();
		while (list($key, $value) = each($mod)) {
			// Comma seperate your arrays, son.
			if (is_array($value))
				$value = implode(",", $value);
	
			$update[0]['modify'][$row]['fieldName'] = $key;
			$update[0]['modify'][$row]['fieldValue'] = $bugDatabase->db->qstr($value);
			$row ++;
		}
	
		if ($row) {
			// Now we assemble the DB info...
			$update[0]['tableName'] = "projects";
			$update[0]['action'] = "add";
			$bugDatabase->alterDb($update);
	}
}
?>
Return current item: BugIn and Ticketing System