include 'admin/coreclass.php'; session_start(); $db = new database(); if (isset($_POST['submit'])) { $fb = new feedbacks(); $feedbackDate = time(); #the date when the feedback was posted. $username = $_POST['username']; #the name of the person who posted a feedback. $emailAddress = $_POST['emailAddress']; #the email address of the person who posted the feedback. $feedback = $_POST['feedback']; #the feedback of the person. $category = 1; $fb->send_feedbacks($username, $emailAddress, $feedback, $category); } /** * obtain list of the category */ $sql = "select * from category"; if (!($result = $db->query($sql))) { die('Error:' . $db->error()); } $categories = array(); while ($categories[] = $db->fetcharray()) { } $totalcategories = count($categories); $categorylist = ''; for ($i = 0; $i < $totalcategories - 1; $i++) { foreach ($categories as $field => $value) {
include 'admin/coreclass.php'; session_start(); $db = new database(); if (isset($_POST['submit'])) { $fb = new feedbacks(); $feedbackDate = time(); #the date when the feedback was posted. $username = $_POST['username']; #the name of the person who posted a feedback. $emailAddress = $_POST['emailAddress']; #the email address of the person who posted the feedback. $feedback = $_POST['feedback']; #the feedback of the f*****g person. $externalreport = $_POST['externalreport']; $category = 2; $fb->send_feedbacks($username, $emailAddress, $externalreport, $category); } /** * obtain list of the category */ $sql = "select * from category"; if (!($result = $db->query($sql))) { die('Error:' . $db->error()); } $categories = array(); while ($categories[] = $db->fetcharray()) { } $totalcategories = count($categories); $categorylist = ''; for ($i = 0; $i < $totalcategories - 1; $i++) { foreach ($categories as $field => $value) {