cliph Posted July 15, 2009 Share Posted July 15, 2009 Hi - I've just joined the forum in the hope you can help get my website working again. It's for a members club and it was working fine until last week. I understand that PHP has been changed and that may be part of the problem, apart from my sloppy prgramming! For each current member in the member database the program checks the availability database to see whether they have said they will attend each future event "yes "Y" no "N" or nothing (the default) "?". The error message reads "Fatal error: Cannot re-assign $this in /home/q12ekmm/public_html/Members/seeavail.php on line 320" $this being the member's id taken from the member database. Sorry I don't know enough to explain the problem more coherently and that I'm not sure of the protocols for seeking help Thanks for any help you can give Link to comment https://forums.phpfreaks.com/topic/166069-solved-wont-reassign-variable/ Share on other sites More sharing options...
rhodesa Posted July 15, 2009 Share Posted July 15, 2009 Can you post some of your code? Specifically seeavail.php First though, I wouldn't use the variable $this...it's a special variables used inside classes for PHP. You may want to try changing the name of that variable. Link to comment https://forums.phpfreaks.com/topic/166069-solved-wont-reassign-variable/#findComment-875799 Share on other sites More sharing options...
cliph Posted July 16, 2009 Author Share Posted July 16, 2009 I love you I love you I love you - I changed $this to $vis and it works!!! Thanks for your help Link to comment https://forums.phpfreaks.com/topic/166069-solved-wont-reassign-variable/#findComment-876322 Share on other sites More sharing options...
cliph Posted July 16, 2009 Author Share Posted July 16, 2009 Please let me know if there's anything I need to do to mark this thread as "solved". Thanks again Link to comment https://forums.phpfreaks.com/topic/166069-solved-wont-reassign-variable/#findComment-876323 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.