Ich habe meinen Code auf meiner Löschfunktion basiert, die ich von gestern erhalten habe, aber ich habe kein Glück damit im Edit
Controller
Code: Select all
function update()
{
$booking=array(
'name'=>$this->input->post('name'),
'nationality'=>$this->input->post('nationality'),
'number_of_guest'=>$this->input->post('number_of_guest'),
'date'=>$this->input->post('date'),
'package'=>$this->input->post('package'),
'request'=>$this->input->post('request')
);
$this->site_model->update_record($booking);
$this->edit();
}
Code: Select all
function update_record($booking)
{
$this->db->where('id', 1);
$this->db->update('booking', $booking);
}
Code: Select all
Update
Guest name(s):
Nationality:
Number of Guest:
Date of Arrival:
Choose Package to avail
Package A. Half - day City Tour
...
Package B. Honda Bay Island Hopping
Package C. St. Paul's Subterranean River National Park or Underground River
Other Request:
Code: Select all
Mobile version