if (!empty($type) and !empty($data)) return $this->rows($type,$data,$head);
}
- public static function begin($o,$head) {
+ public static function begin($o,$head,$data) {
if (!empty($o['enclose'])) echo $o['enclose'][0];
if (!isset($o['head'])) return;
if (self::is_hash($data)) $data = array($data);
if (is_scalar($data)) $data = array($data);
- if (!is_array($head) and !is_bool($head)) $head = array($head);
+ if (is_scalar($head) and !is_bool($head)) $head = array($head);
$tot = count($data);
$count = 0;
# Function head
- self::begin($conf,$head);
+ self::begin($conf,$head,$data);
foreach ($data as $row) {
if ($count>0) out::concat($conf);