Welcome Guest, Not a member yet? Register   Sign In
how to pass session from one function to another
#1

[eluser]praveena[/eluser]
I was unble to pass session from one function to another function it was not taking any values showing null
please help me
#2

[eluser]InsiteFX[/eluser]
Do you want to explain it more?

InsiteFX
#3

[eluser]praveena[/eluser]
ya i was able to pass the I assigned to the variable but I was not able to assign the variable to the query

$query=$this->db->query('SELECT comnyname,address1,address2,city,province,country,postal_code,phone,fax,emailid,overview,solutions,
date FROM master WHERE user_id='.$userid1);

.$userid1 this is session id
#4

[eluser]smilie[/eluser]
May I ask, why don't you use:

Code:
$query=$this->db->query(‘SELECT comnyname,address1,address2,city,province,country,postal_code,phone,fax,emailid,overview,solutions,
date FROM master WHERE user_id=’.$this->session->userdata("userid");

Cheers,
Smilie




Theme © iAndrew 2016 - Forum software by © MyBB