gudfry Posted July 30, 2008 Share Posted July 30, 2008 hi all; what is wrong with in this code, please correct it thanks <?php $value=""; $city=""; echo $result=city::getDisplayName($value->id==$city); ?> Quote Link to comment https://forums.phpfreaks.com/topic/117314-problem-with-none-object-property/ Share on other sites More sharing options...
trq Posted July 30, 2008 Share Posted July 30, 2008 A little more context would help. Quote Link to comment https://forums.phpfreaks.com/topic/117314-problem-with-none-object-property/#findComment-603448 Share on other sites More sharing options...
matthewhaworth Posted July 30, 2008 Share Posted July 30, 2008 You've defined $city as a string and you're trying to call a static method from it. Perhaps you need to call $city something else if it's the same name as the 'city' object? Quote Link to comment https://forums.phpfreaks.com/topic/117314-problem-with-none-object-property/#findComment-603495 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.