Welcome Guest, Not a member yet? Register   Sign In
need to pass email field value into variable
#1

[eluser]Brad K Morse[/eluser]
model function: gets email of $venue_id = id

Code:
function getVenueChairEmail($venue_id) {
  $q = $this->db->select('email')->where('id',$venue_id)->get('venues');
}

Then I want to pass the email into the variable $to, like I am trying to do below

Code:
$to = $this->data_model->getVenueChairEmail($venue_id);

It is not passing anything into $to, tested by printing it out, empty.

I imagine its not as easy as that, any help is appreciated.


Messages In This Thread
need to pass email field value into variable - by El Forum - 11-23-2010, 09:30 PM
need to pass email field value into variable - by El Forum - 11-23-2010, 10:16 PM
need to pass email field value into variable - by El Forum - 11-23-2010, 10:20 PM
need to pass email field value into variable - by El Forum - 11-23-2010, 10:25 PM
need to pass email field value into variable - by El Forum - 11-23-2010, 10:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB