I codeigniterWarum ich den Fehler 502
public function add()
{
if(!$this->session->userdata('id') || !$this->session->userdata('email'))
{
echo "please enter before";
exit();
}
$user_id = $this->session->userdata('id');
$organization = $this->input->post('organization');
$adress = $this->input->post('adress');
$responsable = $this->input->post('responsable');
$doljnost = $this->input->post('doljnost');
$rab_tel = $this->db->escape($this->input->post('rab_tel'));
$mob_tel = $this->db->escape($this->input->post('mob_tel'));
$desc = $this->db->escape($this->input->post('desc'));
$uslovia = $this->db->escape($this->input->post('uslovia'));
$ocobennosti = $this->db->escape($this->input->post('ocobennosti'));
$coupons = $this->input->post('coupons');
$discount = $this->input->post('discount');
$category = $this->input->post('category');
$days = $this->input->post('days');
if(empty($discount) || empty($adress) || empty($mob_tel) || empty($discount))
{
$this->session->set_flashdata('error', 'fill the inputs');
$data['content'] = $this->load->view('user_add', null, true);
$this->load->view('layout', $data);
}
else
{
$this->db->query('INSERT INTO user_adds (`organization`, `adress`,
`responsable`, `doljnost`, `rab_tel`,
`mob_tel`,`desc`, `uslovia`, `ocobennosti`, `coupons`, `category`, `end`, `user_id`) VALUES
("'.$organization.'", "'.$adress.'", "'.$responsable.'",
"'.$doljnost.'", "'.$rab_tel.'", "'.$mob_tel.'",
"'.$desc.'", "'.$uslovia.'", "'.$ocobennosti.'",
"'.$coupons.'", "'.$category.'", NOW() + INTERVAL '.$days.' DAY, "'.$user_id.'")');
redirect('/');
}
}
nach dieser Methode ist die Verwendung am ausgeführt wird, dann, wenn ich auf eine andere Seite übergeben, its me diesen Fehler
502 Bad Gateway
zeigenDer Server hat eine ungültige oder unvollständige Antwort zurückgegeben.
Was mache ich falsch ??
die Sitzung Bibliothek automatisch geladen, ich bin vorbei nur auf dieses Verfahren, und es ist nicht nessesary einreichen
ja ich mag es :) –
Ich habe eine 502 schlechte Gateway-Problem auch. Ich habe es so weit eingegrenzt, dass es eine Beziehung zur Warenkorbbibliothek hat. Haben Sie die Lösung für dieses Problem gefunden? – shababhsiddique