[eluser]mi6crazyheart[/eluser]
Oh Buddy, u r not getting the point actually...
Look , what u'd written in MODEL function get() previously
Code:
function get()
{
$email_address = $this->session->userdata('email_address');
$sql = "SELECT * FROM membership WHERE email_address = ?";
$query = $this->db->query($sql, $email_address);
return $query->result();
}
According to above code(2nd line) u'r trying to access all the data from table where email_address field of any record may be equal to any specific email id.
By keeping this thing in mind i'd showed u that CONTROLLER function example..
Code:
$data['userInfo'] = $this->pcard_model->getUserInfo($emailID);
What at here i'm trying to do in above line is, just sending that require mail id to MODEL function which needed to be compare with DB table emailID field through SQL query. So, now it's u'r duty to get that emailID any way(GET/POST/whatever) & assign that to the $emailID variable. SO that u'r MODEL can get that required emailID for comparison.
But, just make blank the value of mailID id by $emailID = ""; will not solve u'r problem. Because, according to u'r model function's SQL query it'll search for those record in DB table which has no value in their emailID field.
Hope, now u got the point...