return $errors; } //list all errors private function ArrowList() { global $db; $recordSet =& $db->Execute('SELECT RightArrows,LeftArrows from Patterns where Name="' . $this->name . '" and TotalErrors != 0'); if (!$recordSet) { print $db->ErrorMsg(); } else { $errorSet = ""; while (!$recordSet->EOF) { $errorSet .= $recordSet->fields[0] + $recordSet->fields[1]; $recordSet->MoveNext(); } $errorSet = substr(trim($errorSet), 0, strlen($errorSet) - 1); $errors = explode(",", $errorSet); } $recordSet->Close(); //remove duplicate values $errors = array_unique($errors); //sorts key positions ..chrnological order sort($errors); return $errors; } } $t = new Template(); //$t->newTemplate("Jinah Adam",false); //$t->save(); $t->retrieve("jinahadam"); $t->debug();