topical media & game development
basic-php-13-cpanel.php / php
<?php
require_once 'conn.php';
require_once 'header.php';
_SESSION['user_id'];
sql, user = mysql_fetch_array(user['name']); ?>"></p>
<p>E-mail:<br>
<input type="text" id="email" name="email"
value="<?php echo htmlspecialchars(sql = "SELECT article_id, title, date_submitted " .
"FROM cms_articles " .
"WHERE is_published=0 " .
"AND author_id=" . result = mysql_query(conn)
or die('Could not get list of pending articles; ' . mysql_error());
if (mysql_num_rows(row = mysql_fetch_array(row['article_id'] . '">' . htmlspecialchars(row['date_submitted'])) .
")</td>\n";
echo "</tr>\n";
}
}
?>
</table>
</div>
<br>
<h2>Published Articles</h2>
<div class="scroller">
<table>
<?php
_SESSION['user_id'] . " " .
"ORDER BY date_submitted";
sql, result) == 0) {
echo " <em>No published articles available</em>";
} else {
while (result)) {
echo "<tr>\n";
echo '<td><a href="viewarticle.php?article=' .
row['title']) .
"</a> (published " .
date("F j, Y", strtotime(
(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.