Welcome Guest, Not a member yet? Register   Sign In
IF Query
#2

Try this, first get it to work then tweak it out.

PHP Code:
public function insert_artikel($slug)
{
 
   if (isset($_POST['add_insert_artikel']))
 
   {
 
       if ($this->input->post('add_karte_anzahl') == 0)
 
       {
 
           $this->db->set('tb_ygo_karten_stats_aktiv'0);
 
       }
 
       else
        
{
 
           $this->db->set('tb_ygo_karten_stats_aktiv'1);
 
       }

 
           $this->db->where('tb_ygo_karten_stats_id'$slug);
 
           $this->db->update('db_ygo_karten_stats');
 
       }
 
   


What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
IF Query - by Germanikus - 03-01-2018, 03:16 PM
RE: IF Query - by InsiteFX - 03-02-2018, 04:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB