Jump to content

[SOLVED] how to "share" a variable


overlordofevil

Recommended Posts

hey all,

 

I am wondering if there is a way to share a variable between multiple files. What I mean by this is I have an interface that pulls data from a table and displays it based on what it is and how it is related to the user info.

 

The user info in on the "main page" and the data being pulled is from another script that I have 'included'. so what I would like to do is take the user info and allow the included script to access it.  Is there anyway to do this other then making the variable a session variable?

 

any suggestion in where i can read up on this or what to try would be appreciated.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/108901-solved-how-to-quotsharequot-a-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.