Maybe someone can help me with this. The code is here:
<html>
<body>
Latest Submissions<p>
<?php
$db = mysql_connect("localhost", "abie10", "abie10");
mysql_select_db("pea_abie10_com",$db);
// display individual record
if ($id) {
$result = mysql_query("SELECT * FROM submit WHERE id=$id",$db);
$myrow = mysql_fetch_array($result);
printf("Wrestlers Name: %s\n<br>", $myrow["wname"]);
printf("Category: %s\n<br>", $myrow["category"]);
printf("Submitted By: %s\n<br>", $myrow["name"]);
printf("Email: %s\n<br>", $myrow["email"]);
} else {
// show employee list
$result = mysql_query("SELECT * FROM submit",$db);
if ($myrow = mysql_fetch_array($result)) {
// display list if there are records to display
do {
printf("<a href=\"%s?id=%s\">%s </a><br>\n", $PHP_SELF, $myrow["id"], $myrow["wname"]);
} while ($myrow = mysql_fetch_array($result));
} else {
// no records to display
echo "Sorry, no records were found!";
}
}
?>
</body>
</html>
What I need to do is this. This is basically a lite admin page. It will display submissions from users, which are basically nominations. They are stored in a DB and displayed on this page. The admin will come in and view them all and make a determination as to accept the nominee or not. The admin can click on each submission and view the info. From there, I need a link such as Accept and Reject options to the admin. If he rejects it, it will simply be removed from the DB. If he accepts it, it will be removed from the 'submit' database and added to a db called nominees.
This is the part of the code that is giving me hell. I already have most of the simple stuff complete.
If anyone can help me please email me at abie@abie10.com or respond here.