Welcome Guest, Not a member yet? Register   Sign In
auto email
#1

[eluser]learning_php[/eluser]
Hi,

I have created a very basic login system where users have to register to gain access to certain areas. The code below moves them from one table to another.
Code:
function updatemembers()
    {
        $id = $_POST["id"];
        $approved = $_POST["approved"];
        
        if($approved = "Yes") {
            $this->db->query("insert into members (select * from pending_members where id = " . $id . ")");
            $this->db->query("delete from pending_members where id = " . $id );
            $this->load->view('update_data_view');
        
            
        }
        else if($approved = "No"){
            
            $this->db->query("delete from pending_members where id = " . $id );
            $this->load->view('update_data_view');

        }
    }

does anyone know how difficult it is to send a auto email to either confirm or reject a user membership request?


Messages In This Thread
auto email - by El Forum - 04-30-2009, 01:39 PM
auto email - by El Forum - 04-30-2009, 02:13 PM
auto email - by El Forum - 04-30-2009, 02:21 PM
auto email - by El Forum - 05-01-2009, 04:07 AM
auto email - by El Forum - 05-01-2009, 04:15 AM
auto email - by El Forum - 05-01-2009, 04:16 AM
auto email - by El Forum - 05-01-2009, 04:22 AM
auto email - by El Forum - 05-01-2009, 04:24 AM
auto email - by El Forum - 05-01-2009, 04:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB