View Single Post
Unread 21 Dec 2005, 00:47   #8
Ragnarak
Registered User
 
Ragnarak's Avatar
 
Join Date: Oct 2000
Posts: 4,944
Ragnarak is a splendid one to beholdRagnarak is a splendid one to beholdRagnarak is a splendid one to beholdRagnarak is a splendid one to beholdRagnarak is a splendid one to beholdRagnarak is a splendid one to beholdRagnarak is a splendid one to behold
Re: Basic PHP Help: Global Variables?

Sorry for the crappy explanation.

I need to create a unique ID when someone loads a page. I'm doing this via the function I posted above.

The page will have two adverts on it, one in (for example) header.php and one in a footer.php. I need to be able to use the same unique ID for both adverts.

How I was hoping it could be done was that header.php has the function in it to create the ID and then I can just use $OurID in the footer and it's the same value as it was in the header. The next time the page is loaded the value is changed to a new random ID.
__________________
I find it kind of funny
I find it kind of sad
The dreams in which i'm dying
Are the best i've ever had
Ragnarak is offline   Reply With Quote