} } //print_r($_POST); if (isset($_POST['imageID'])) { // is image checked?? $article_images = $_POST['imageID']; if ($article_images == -1) { $sql = " select * from article_imgs ai"; $sql .= " where ai.articleID=" . intval($articleID); $db->query($sql); $result = array(); while ($row = $db->fetcharray()) { $imagesets[] = $row; } $photo = new stockphoto(); $photo->notshowArticle_image($imagesets, $articleID); } if ($article_images) { $photo = new stockphoto(); $photo->showArticle_image($article_images, $articleID); } } // if keywords was set by the editor if ($keywords) { $sql = " select * from article_keywords ak "; $sql .= " where ak.articleID=" . intval($articleID); $db->query($sql); if ($db->getnumrows() > 0) { $sql = " update article_keywords "; $sql .= " set keywords= '{$keywords}' "; $sql .= " where articleID=" . intval($articleID);