(fixed myself) fetch data in database and store in a global variable?

U need to call session_start(); before setting/accessing any session variable. Then you can access the session variables in another page again by first caling sesion_Start().

You don't have to declare your sessions as arrays. Try something like this.

Related Questions