--- inc/newsEdit.php 2001/09/26 13:04:28 1.9 +++ inc/newsEdit.php 2001/09/28 23:34:37 1.10 @@ -136,7 +136,7 @@ $sql = "INSERT INTO news (category, title, lead, title_pic, title_alt, title_pos, author_pic, author_alt, author_info, url, url_title, plivamed, d_orig, d_change) VALUES ('$ed_cat', $ed_title, $ed_lead, $ed_titlepic_nm, $ed_titlepic_alt, $ed_titlepic_pos, $ed_author_nm, $ed_author_alt, $ed_author_info, $ed_more, $ed_more_title, ".($isMed?"true":"false").", NOW(), NOW())"; sql($sql); $dbh->dbh_do($sql); - $sql = "SELECT news_id FROM news WHERE (title = $ed_title)"; + $sql = "SELECT currval('news_news_id_seq')::text"; sql($sql); $sth = $dbh->prepare($sql); if (!$sth) error("Cannot prepare query: \"$sql\""); @@ -295,7 +295,6 @@ } // ----- $tp = new Smarty(); - // ----- $tp->assign("levels", $levels); // ----- global $ed_id, $ed_title, $ed_lead, $ed_titlepic_pos,