Welcome Guest, Not a member yet? Register   Sign In
How to use variable in flash message
#1

[eluser]debow[/eluser]
Can someone help with the below issue. All I'm wanting to do is use the users first name that gets deleted in the message after they are deleted.

Code:
function pdelete($options = array()) {
        // required values
        if (!$this->_required(array('athId'), $options))return false;
        
        $name = $options['athfirst'];
        
        //$this->db->where('athId', $options['athId']);
        //$this->db->delete($this->athlete);
        
        $message = "<p class='successmsg'> User .$name.  has been deleted</p>";
        $this->session->set_flashdata('message', $message);
        
    }

The $name is not showing up at all. I know I doing something wrong but not sure what. I've tried it many different ways.


Messages In This Thread
How to use variable in flash message - by El Forum - 05-10-2011, 12:59 PM
How to use variable in flash message - by El Forum - 05-10-2011, 01:22 PM
How to use variable in flash message - by El Forum - 05-10-2011, 01:30 PM
How to use variable in flash message - by El Forum - 05-10-2011, 01:57 PM
How to use variable in flash message - by El Forum - 05-10-2011, 02:13 PM
How to use variable in flash message - by El Forum - 05-10-2011, 02:58 PM
How to use variable in flash message - by El Forum - 05-10-2011, 03:08 PM
How to use variable in flash message - by El Forum - 05-10-2011, 03:14 PM
How to use variable in flash message - by El Forum - 05-10-2011, 03:20 PM
How to use variable in flash message - by El Forum - 05-10-2011, 03:28 PM
How to use variable in flash message - by El Forum - 05-11-2011, 12:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB