Welcome Guest, Not a member yet? Register   Sign In
What is the best way for data in user section
#11

[eluser]steelaz[/eluser]
I really need more coffee today, it should be "return $query->row();"
#12

[eluser]Michal1[/eluser]
Ah sorry I was beeing so quick. It still does not work lol. it does not shows articles right. For example if user with id 2 is logged in it shows articles who has user id 0 and not 2. I need to look at it one more time.
#13

[eluser]steelaz[/eluser]
Check my post above, you need "return $query->row();" instead of just "$query->row();"
#14

[eluser]Michal1[/eluser]
Smile finally works. Thank you for ur help!
#15

[eluser]Michal1[/eluser]
Just for better understanding. Session class works with cookies right? So what happens when user does not have cookies allowed?
#16

[eluser]steelaz[/eluser]
No problem, good luck with your project Smile
#17

[eluser]steelaz[/eluser]
[quote author="Michal1" date="1299510068"]Just for better understanding. Session class works with cookies right? So what happens when user does not have cookies allowed?[/quote]

Yes, sessions always work with cookies, you can edit your /config/config.php to store session data in database, but session ID will still be stored in a cookie. If user has cookies disabled, he will not be able to login, but he won't be able to login to any site, not just yours.
#18

[eluser]Michal1[/eluser]
Thank you for an explanation. So absolutely no worries about that Smile




Theme © iAndrew 2016 - Forum software by © MyBB