Web design programs - WHERE article_id= . $_GET[ article ]; $result = mysql_query($sql, $conn)

WHERE article_id= . $_GET[ article ]; $result = mysql_query($sql, $conn) or die( Could not retrieve article data; . mysql_error()); $row = mysql_fetch_array($result); $title = $row[ title ]; $body = $row[ body ]; $article = $_GET[ article ]; $authorid = $row[ author_id ]; } Load the prerequisite header.php: require_once header.php ; What follows is more standard HTML stuff. You know what htmlspecialchars() does, don t you? Of course you do. If not, go back a page or two and review. ?>

Compose Article

Title:
>

Body:

The article ID must be carried over to the transaction page if you are modifying an existing article. The following hidden input field will do this for you. n ; You also need to pass the author ID if the original author is editing his or her own document. if ($_SESSION[ access_lvl ] < 2) { echo n ; } If the article is being modified, display the Save Changes submit button. If it s a new article, display the Submit New Article button. 461 Building a Content Management System
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply