Şuanki Dizin: /home/wwwdreamtechnolo/www/kpmim.org/admin/lib/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/kpmim.org/admin/lib/function1.php |
<?php session_start(); date_default_timezone_set('Asia/Kolkata'); class class_function { private $con; function __construct() { //$this->con = new mysqli("localhost", "root", "", "kpmim_main_db"); $this->con = new mysqli("localhost","kpmim_website_admin","V=TDh4o(sZiy","kpmim_main_db"); } function get_all_grivience_data($complain_no,$full_name,$category_of_complainant,$course_of_study,$section,$roll_no,$mobile_no1,$email1,$category_of_grievance,$others_please_specify,$address_for_communication,$brief_subject_of_grievance,$complete_details_of_grievance,$upload_documents_if_any,$i_hereby_declare) { $currentdate = date("Y-m-d"); $currenttime = date("H:i:s A"); if ($stmt = $this->con->prepare("INSERT INTO `grivience_table`(`complain_no`, `full_name`, `category_of_complainant`, `course_of_study`, `section`, `roll_no`, `mobile_no1`, `email1`, `category_of_grievance`, `others_please_specify`, `address_for_communication`, `brief_subject_of_grievance`, `complete_details_of_grievance`, `upload_documents_if_any`, `i_hereby_declare`, `date`, `time`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)")) { $stmt->bind_param("sssssssssssssssss", $complain_no,$full_name,$category_of_complainant,$course_of_study,$section,$roll_no,$mobile_no1,$email1,$category_of_grievance,$others_please_specify,$address_for_communication,$brief_subject_of_grievance,$complete_details_of_grievance,$upload_documents_if_any,$i_hereby_declare,$currentdate,$currenttime); if ($stmt->execute()) { return true; } else { return false; } } } function get_all_frivience_data() { if($stmt_insert = $this->con->prepare("SELECT `id`, `complain_no`, `full_name`, `category_of_complainant`, `course_of_study`, `section`, `roll_no`, `mobile_no1`, `email1`, `category_of_grievance`, `others_please_specify`, `address_for_communication`, `brief_subject_of_grievance`, `complete_details_of_grievance`, `upload_documents_if_any`, `i_hereby_declare`, `date`, `time` FROM `grivience_table` ")) { $stmt_insert->bind_result($id,$complain_no,$full_name,$category_of_complainant,$course_of_study,$section,$roll_no,$mobile_no1,$email1,$category_of_grievance,$others_please_specify,$address_for_communication,$brief_subject_of_grievance,$complete_details_of_grievance,$upload_documents_if_any,$i_hereby_declare,$currentdate,$currenttime); if($stmt_insert->execute()) { $counter = 0; $details = array(); while($stmt_insert->fetch()) { $details[$counter][0] = $id; $details[$counter][1] = $complain_no; $details[$counter][2] = $full_name; $details[$counter][3] = $category_of_complainant; $details[$counter][4] = $course_of_study; $details[$counter][5] = $roll_no; $details[$counter][6] = $mobile_no1; $details[$counter][7] = $email1; $details[$counter][8] = $category_of_grievance; $details[$counter][9] = $others_please_specify; $details[$counter][10] = $address_for_communication; $details[$counter][11] = $brief_subject_of_grievance; $details[$counter][12] = $complete_details_of_grievance; $details[$counter][13] = $upload_documents_if_any; $details[$counter][14] = $i_hereby_declare; $details[$counter][15] = $currentdate; $details[$counter][16] = $currenttime; $details[$counter][17] = $section; $counter++; } if(!empty($details)) { return $details; } return false; } } } function delete_grivience_data($delete_id) { if($stmt_select = $this->con->prepare("DELETE FROM `grivience_table` WHERE `id`=?")) { $stmt_select->bind_param("i",$delete_id); if($stmt_select->execute()) { return true; } return false; } } }//End of Function
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4