public function store() { $conn = mysql_connect("localhost", "root", "") or die("Cannot connect database."); $lnk = mysql_select_db("db_atomic_project_suraiya") or die("Cannot select database."); $query = "INSERT INTO `db_atomic_project_suraiya`.`tbl_summary_organizations` (`company_name`, `summary_organizations`) VALUES ('" . $this->company_name . "', '" . $this->summary_organizations . "')"; $result = mysql_query($query); if ($result) { $_message = "All data added successfully."; } else { $_message = "There is problem loading page, please try again later..."; } Utility::redirect('../../SEIP118719/Summary_Organizations/index.php'); }
public function store() { $conn = mysql_connect("localhost", "root", "") or die("Cannot connect database."); $lnk = mysql_select_db("db_atomic_project_suraiya") or die("Cannot select database."); $query = "INSERT INTO `db_atomic_project_suraiya`.`tbl_books` (`book_title`, `author`) VALUES ('" . $this->book_title . "', '" . $this->author . "')"; $result = mysql_query($query); if ($result) { $_message = "All data added successfully."; } else { $_message = "There is problem loading page, please try again later..."; } Utility::redirect('../../SEIP118719/Book_Title/index.php'); }
public function store() { $conn = mysql_connect("localhost", "root", "") or die("Cannot connect database."); $lnk = mysql_select_db("db_atomic_project_suraiya") or die("Cannot select database."); $query = "INSERT INTO `db_atomic_project_suraiya`.`tbl_email_subscriptions` (`first_name`, `last_name`, `email_subscription`) VALUES ('" . $this->first_name . "', '" . $this->last_name . "', '" . $this->email_subscription . "')"; $result = mysql_query($query); if ($result) { $_message = "All data added successfully."; } else { $_message = "There is problem loading page, please try again later..."; } Utility::redirect('../../SEIP118719/Email_Subscription/index.php'); }
public function store() { $conn = mysql_connect("localhost", "root", "") or die("Cannot connect with database."); $lnk = mysql_select_db("db_atomic_project_suraiya") or die("Cannot select database."); $query = "INSERT INTO `db_atomic_project_suraiya`.`tbl_birthdays` (`user_name`, `birth_date`) VALUES ('" . $this->user_name . "', '" . $this->birth_date . "')"; $result = mysql_query($query); if ($result) { $_message = "Birthday Date is added successfully."; } else { $_message = "There is an error while saving data. Please try again later."; } Utility::redirect('../../SEIP118719/Birthday/index.php'); }