ram4nd Posted September 23, 2009 Share Posted September 23, 2009 My code doubles function partially. Are there any common mistakes what lead to this? Quote Link to comment https://forums.phpfreaks.com/topic/175189-doubles-where-it-shouldnt/ Share on other sites More sharing options...
trq Posted September 23, 2009 Share Posted September 23, 2009 I'm not sure that first sentence makes sense. Quote Link to comment https://forums.phpfreaks.com/topic/175189-doubles-where-it-shouldnt/#findComment-923353 Share on other sites More sharing options...
ram4nd Posted September 23, 2009 Author Share Posted September 23, 2009 It was about globals, i still don't get the hang of those. Quote Link to comment https://forums.phpfreaks.com/topic/175189-doubles-where-it-shouldnt/#findComment-923355 Share on other sites More sharing options...
Bricktop Posted September 23, 2009 Share Posted September 23, 2009 Hi ram4nd, I think it would be better if you could post the relevant code, with an explanation of the problem. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/175189-doubles-where-it-shouldnt/#findComment-923357 Share on other sites More sharing options...
PFMaBiSmAd Posted September 23, 2009 Share Posted September 23, 2009 It was about globals, i still don't get the hang of those. Nothing in php that is associated with the word global or globals should be used. Php attempted to allow bad code to be written that would 'work' and resulted in a lot of wasted time and confusion in the process. Quote Link to comment https://forums.phpfreaks.com/topic/175189-doubles-where-it-shouldnt/#findComment-923443 Share on other sites More sharing options...
ram4nd Posted September 24, 2009 Author Share Posted September 24, 2009 It told me to define the variables so i made them static instead of global. Quote Link to comment https://forums.phpfreaks.com/topic/175189-doubles-where-it-shouldnt/#findComment-924132 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.