topical media & game development
basic-php-16-editforum.php / php
<?php
if (isset(action = "Edit";
} else {
pageTitle = "forum = 0;
fdesc = '';
userid = 0;
if (isset(forum = sql = "SELECT forum_name, forum_desc, u.name, u.id " .
"FROM forum_forum f " .
"LEFT JOIN forum_users u " .
"ON f.forum_moderator = u.id " .
"WHERE f.id = result = mysql_query(row = mysql_fetch_array(fname = fdesc = fmod = userid = action forum</h2>";
?>
<form name="forumedit" action=<transact-admin.php> method="post">
<table class="forumtable" cellspacing="0">
<tr><th colspan="2">General Forum Settings</th></tr>
<tr>
<td>Forum Name</td>
<td>
<input type="text" name="forumname"
value="<?php echo fdesc; ?>">
</td>
</tr>
<tr>
<td>Forum Moderator</td>
<td>
<select id="moderator" name="forummod[]">
<option value="0">unmoderated</option>
<?php
result = mysql_query(row = mysql_fetch_array(row['id'] . "\"";
if (row['id']) echo " selected='selected'";
echo ">" . action; ?> Forum">
</td>
</tr>
</table>
<input type="hidden" name="forum_id" value="<?php echo
(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.