Welcome Guest, Not a member yet? Register   Sign In
Form and user data advice needed!!!
#11

[eluser]ede196620[/eluser]
///////
#12

[eluser]ede196620[/eluser]
i am Adding Custom Session Data to my session i am using an id from one of my tables form database in session. Tnx for your help
#13

[eluser]TheFuzzy0ne[/eluser]
I still don't understand why you need the session ID. What's wrong with:

Code:
$this->session->set_userdata('user_id', '12345');

Now that data is in the session and can be retrieved with:
Code:
$user_id = $this->session->userdata('user_id');

CodeIgniter takes care of everything for you. You don't even need to know the session ID.

Am I missing something obvious? I can't help but wonder, since I've never needed know the session ID before.
#14

[eluser]ede196620[/eluser]
i maybe explain this wrong my English is not so good probably i am using an id form on table to pass in to another table eg. from my users table to my suggestions table so like this the data will be displayed appropriately on the web page wit the user that has written the data
#15

[eluser]GrahamDj28[/eluser]
[quote author="TheFuzzy0ne" date="1365759315"]You could use GROUP_CONCAT() to concatenate the comments[/quote]

GROUP_CONCAT() has a return limit of 1024 characters. So when the list is long not all results will be returned.
#16

[eluser]TheFuzzy0ne[/eluser]
Thanks for pointing that out. I had no idea. Time to update some of my apps... O.O




Theme © iAndrew 2016 - Forum software by © MyBB