WHERE article_id= . $_POST[ article ]; mysql_query($sql, $conn) (Web site hosting) or die( Could
WHERE article_id= . $_POST[ article ]; mysql_query($sql, $conn) or die( Could not publish article; . mysql_error()); } redirect( pending.php ); break; case Retract : if ($_POST[ article ]) { $sql = UPDATE cms_articles . SET is_published=0, date_published= . WHERE article_id= . $_POST[ article ]; mysql_query($sql, $conn) or die( Could not retract article; . mysql_error()); } redirect( pending.php ); break; case Delete : if ($_POST[ article ]) { $sql = DELETE FROM cms_articles . WHERE is_published=0 . AND article_id= . $_POST[ article ]; mysql_query($sql, $conn) or die( Could not delete article; . mysql_error()); } redirect( pending.php ); break; case Submit Comment : if (isset($_POST[ article ]) and $_POST[ article ] and isset($_POST[ comment ]) and $_POST[ comment ]) { $sql = INSERT INTO cms_comments . (article_id,comment_date,comment_user,comment) . VALUES ( . $_POST[ article ] . , . date( Y-m-d H:i:s , time()) . , . $_SESSION[ user_id ] . , . $_POST[ comment ] . ) ; mysql_query($sql, $conn) or die( Could add comment; . mysql_error()); } redirect( viewarticle.php?article= . $_POST[ article ]); break; case remove : if (isset($_GET[ article ]) and isset($_SESSION[ user_id ])) { $sql = DELETE FROM cms_articles . WHERE article_id= . $_GET[ article ] . AND author_id= . $_SESSION[ user_id ]; 439 Building a Content Management System
If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.