Jump to content


Photo

Refreshing variables


  • Please log in to reply
1 reply to this topic

#1 master82

master82
  • Members
  • PipPipPip
  • Advanced Member
  • 182 posts

Posted 04 September 2006 - 07:35 PM

Is it possible to refresh variables recieved from a database?

I only ask because my pages are made up of 2 includes, the first is for validation reasons and the second containd the page data.

At times the first changes a value or two in the database - but this is not seen in the second include unless I refresh the page.

For example

the top include retrieves 'number of clicks' (lets say 10), and excutes code to update that to 11.
But the second include which displays the number f clicks still shows 10 (always a step behind)

So is there a special php command I can use mid-code to refresh variables?

Complicated I know but I hope you see what I am getting at

#2 master82

master82
  • Members
  • PipPipPip
  • Advanced Member
  • 182 posts

Posted 04 September 2006 - 07:53 PM

Sorry, just read up on include() and include_once()

That solved my problem




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users