0) { try { // object init $region = Factory::getObjectByID($regionid); $error = false; } catch (Exception $e) { $error = true; $msg = $e->getMessage(); } if (is_object($region)) { $streets = $region->getStreetsForRegion(); } } ?>
(edit street)
Total: streets
0): ?>
An error happened. saveData("parent_id", intval($_POST['parentid'])); $str->saveData("regiontypeid", intval($_POST['subregion_type'])); $str->saveData("name", pg_escape_string(trim(strip_tags($_POST['subregion_name']))), array("lng" => trim(strip_tags($_POST['registry_language'])))); header("Location: /?t=region&id=".$id); [24.04.2014 20:21:41] michael.wutzke: this is from (old) region.php [24.04.2014 20:21:51] michael.wutzke: is it the same for a new street? [24.04.2014 20:22:13] huopaa: yes, basically it works the same way, just replace the SQL to this: $insert = "INSERT INTO street (id) VALUES (DEFAULT) RETURNING id;"; */ ?>