MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
if ($sql_result) {
echo "Comment $selected deleted from database. \n";
}
} else if ($_POST["submit"]=="Flag Selected") {
$sql = "UPDATE `feedback` SET `flag`= 'YES' WHERE `CommentID`='$selected'";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
if ($sql_result) {
echo "Comment $selected flagged for editor review. \n";
}
}
}
}
unset($i);
echo "Your changes to the comment list have been successfully completed \n";
}
?>
Manage Comments for
View Flagged Comments Queue | \n";
}
// Begin Code for Dynamic Navbars
if ($pageid <=$num_pages) {
$previd=$pageid-1;
if ($previd >"0") {
echo "« Previous • ";
}
}
echo "Page $pageid of $num_pages";
$nextid=$pageid+1;
if ($pageid <$num_pages) {
echo " • Next »";
}
echo " \n";
?>
Name/E-Mail
Date
Rating
Select
"0") {
echo "« Previous • ";
}
}
echo "Page $pageid of $num_pages";
$nextid=$pageid+1;
if ($pageid <$num_pages) {
echo " • Next »";
}
echo " \n";
//Skip to Page...
if ($num_pages>1) {
echo "Jump to Page: ";
$pagesperpage=9; //Plus 1 by default..
$i = 01;
//Dynamic Starting Point
if ($pageid>11) {
$nextpage=$pageid-10;
}
$i=$nextpage;
//Dynamic Ending Point
$maxpagesonpage=$pageid+$pagesperpage;
//Page #s
while ($i <= $maxpagesonpage && $i <= $num_pages) {
if ($i==$pageid) {
echo "$i ";
} else {
echo "$i ";
}
$i++;
}
}
if ($num_pages>1) {
echo " \nComments per page: \n";
$perpagearray = array("25","50","100");
foreach ($perpagearray as $items_per_page) {
echo "$items_per_page ";
}
}
?>
\n";
echo "
Submitting Comment, please wait...
\n";
if (checkFormKey()) {
$id = escape_string($_POST["id"]);
$name = escape_string($_POST["name"]);
$title = escape_string($_POST["title"]);
$comments = escape_string($_POST["notes"]);
if ($_POST["type"]=="E") {
$type="extensions";
} else if ($_POST["type"]=="T") {
$type="themes";
}
$name = "$_SESSION[name]";
$sql = "INSERT INTO `feedback` (`ID`, `CommentName`, `CommentVote`, `CommentTitle`, `CommentNote`, `CommentDate`, `commentip`) VALUES ('$id', '$name', NULL, '$title', '$comments', NOW(NULL), '$_SERVER[REMOTE_ADDR]');";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
if ($sql_result) {
echo "Your comment has been added successfully... \n";
} else {
echo "There was a problem adding your comment, please try again. \n";
}
}
}
?>
Add Comment with No Rating
Need to make a reply comment or answer a question somebody left who didn't provide an e-mail address? Use the form below. No rating is supplied and it will not affect your item's overall rating.
Processing Changes to the Flagged Comments List, please wait...\n";
for ($i=1; $i<=$_POST[maxid]; $i++) {
$action = $_POST["action_$i"];
$commentid = escape_string($_POST["selected_$i"]);
if ($action=="skip") {continue;}
if ($action=="delete") {
$sql = "DELETE FROM `feedback` WHERE `CommentID`='$commentid'";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
if ($sql_result) {
echo "Comment $commentid deleted from database. \n";
}
} else if ($action=="clear") {
$sql = "UPDATE `feedback` SET `flag`= '' WHERE `CommentID`='$commentid'";
$sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE);
if ($sql_result) {
echo "Flag cleared for comment $commentid. \n";
}
}
}
}
unset($i);
?>