basic-php-13-reviewarticle.php / php
<?php require_once 'conn.php'; require_once 'outputfunctions.php'; require_once 'header.php'; ?> <form method="post" action=<transact-article.php>> <h2>Article Review</h2> <?php outputStory(sql = "SELECT ar.*, usr.name, usr.access_lvl " . "FROM cms_articles ar INNER JOIN cms_users usr " . "ON ar.author_id = usr.user_id " . "WHERE article_id=" . result = mysql_query(conn) or die('Could not retrieve article info; ' . mysql_error()); result); if (row['is_published']) { echo '<h4>Published: ' . date("l F j, Y H:i", strtotime(</h4>\n"; } echo "<p><br>\n"; if (row['is_published']) { buttonType = "Publish"; } echo "<input type=\"submit\" class=\"submit\" " . "name=\"action\" value=\"Edit\"> "; if ((_SESSION['access_lvl'] > 1)) { echo "<input type=\"submit\" class=\"submit\" " . "name=\"action\" value=\"<input type=\"submit\" class=\"submit\" " . "name=\"action\" value=\"Delete\"> "; ?> <input type="hidden" name="article" value="<?php echo _GET['article'] ?> "> </p> </form> <?php require_once 'footer.php'; ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.