Drezard Posted March 9, 2007 Share Posted March 9, 2007 What does this error mean? Catchable fatal error: Object of class USERS could not be converted to string in C:\Program Files\xampp\htdocs\wintersword\includes\users.php on line 160 Heres the code... $query = "INSERT INTO user_charinfo (user, level, race, class, money, strength, constitution, dexerity, intelligence, exp_cur, exp_max, hp_cur, hp_max, mp_cur, mp_max) VALUES ('$this->user', '$this->level', '$this->race', '$this->class', '$this->money', '$strength', '$constitution', '$dexerity', '$intelligence', '$this->exp_cur','$this->exp_max', '$this->hp_cur', '$this->hp_max', '$this->mp_cur', '$this-> mp_max')"; Whats wrong? - Cheers, Daniel Quote Link to comment Share on other sites More sharing options...
per1os Posted March 9, 2007 Share Posted March 9, 2007 Maybe this might fix it? '$this-> mp_max')"; to '$this->mp_max')"; You had an extra space there. --FrosT Quote Link to comment Share on other sites More sharing options...
Drezard Posted March 10, 2007 Author Share Posted March 10, 2007 Thank you Frost... Quote Link to comment 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.