public function thanks($already = NULL) { //check if already entered via email crossref - if entered, send to already signed up page if ($already == 'again' || check_entry($this->input->post('email'))) { $this->load->view('layout/header'); $this->load->view('nothanks'); $this->load->view('layout/footer'); } else { if (!$this->input->post('body', TRUE)) { save_entry($this->input->post(NULL, TRUE)); } $this->load->view('layout/header'); $this->load->view('thanks'); $this->load->view('layout/footer'); } }
function insert_into_master_table($post_showid, $post_showtime) { if (check_entry($post_showid, $post_showtime)) { $sql = "insert into masterschedule (showid,starttime) values ('{$post_showid}','{$post_showtime}')"; /*Check Later if the entry already exists*/ if (!mysql_query($sql)) { print mysql_error(); } else { return 1; } } else { return 0; } }