Jamesking56 Posted July 28, 2010 Share Posted July 28, 2010 Fatal error: Call to a member function Setting() on a non-object class Settings { # internal variables function Setting ( $setting ) { // Get Setting Strings $get = mysql_query("SELECT sval FROM settings WHERE skey='" . $setting . "'"); echo $get; return $get; } } What have I done wrong? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 28, 2010 Share Posted July 28, 2010 The error isn't in that code. Wherever you're trying to create and use the object, the variable is not set to the object. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.