if (isset($_POST['update'])) { $title = $_POST['title']; $title_en = $_POST['title_en']; $image = $_POST["image"]; $text = $_POST['text']; $source = $_POST['source']; $video = $_POST['video']; $description = $_POST['description']; $keywords = $_POST['keywords']; $read_time = $_POST['read_time']; $admin_id = $update_blog['admin_id']; $hit_count = $update_blog['hit_count']; $add_time = $update_blog['add_time']; $modify_time = time(); $activate = 0; $update_blog = BLOGS::blogs_UpdateRow($_GET["id"], $title, $title_en, $image, $text, $source, $video, $description, $read_time, $hit_count, $admin_id, $add_time, $modify_time, $activate); if ($update_blog) { $blog_id = DatabaseHandler::GetOne("SELECT `id` FROM blogs WHERE `add_time` = '{$add_time}' ; "); $keywords = explode(",", $keywords); foreach ($keywords as $keyword) { $keyword = trim($keyword); BLOG_KEYWORDS::blog_keywords_Insert($blog_id, $keyword); } // if(isset($_POST['types'])){ // $types = $_POST['types']; // foreach ($types as $type) { // $type = explode("-", $type); // B_T::b_t_Insert($blog_id, $type['1']); // } // } //