master82 Posted September 4, 2006 Share Posted September 4, 2006 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.[u]For example[/u]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 Link to comment https://forums.phpfreaks.com/topic/19698-refreshing-variables/ Share on other sites More sharing options...
master82 Posted September 4, 2006 Author Share Posted September 4, 2006 Sorry, just read up on include() and include_once()That solved my problem Link to comment https://forums.phpfreaks.com/topic/19698-refreshing-variables/#findComment-85947 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.