public function promotion()
{
if (!$this->user_permission->check_permission())
return;
$data['startDate'] = $this->input->post('input_date_from');
$data['endDate'] = $this->input->post('input_date_to');
$email = $this->input->post('email');
var_dump($email);
var_dump($data['startDate']);
var_dump($data['endDate']);
$this->db->select('a.booking_id as booking_id, a.from_email as from_email, a.booking_date as booking_date, a.status as status, b.vendor_airway_bill as awb, b.tariff as tariff');
$this->db->where('from_email', $email);
$this->db->where('booking_date >=', date('Y-m-d',strtotime($data['startDate'])));
$this->db->where('booking_date
mein Controller (ich möchte Datensätze basierend auf einigen Bedingungen auswählen): < /p> [code]public function promotion() { if (!$this->user_permission->check_permission()) return;
$this->db->select('a.booking_id as booking_id, a.from_email as from_email, a.booking_date as booking_date, a.status as status, b.vendor_airway_bill as awb, b.tariff as tariff'); $this->db->where('from_email', $email); $this->db->where('booking_date >=', date('Y-m-d',strtotime($data['startDate']))); $this->db->where('booking_date
Dies ist der Code funktioniert gut, aber nur für eine Spaltensuche, die Benutzer im folgenden Code ist, muss jedoch mehr als eine Spalte wie Kennwort , E -Mail
Controller
durchsuchen. public...
Wenn ich Felder in meiner Datenbank namens Carmake und carbolour habe. Was passiert, ist, wenn ich Toyota eingeben kann, es gibt alle Toyota -Autos gut zurück. Wenn ich Blue einmachte, gibt es alle...
Ich habe Tabellenkarten (Benutzername, Beiträge, Schema)
Benutzer können Beiträge haben.
für z. B.
____________________________________
username | posts | scheme |...