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 Link to comment https://forums.phpfreaks.com/topic/42057-php-mysql-error/ 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 Link to comment https://forums.phpfreaks.com/topic/42057-php-mysql-error/#findComment-203969 Share on other sites More sharing options...
Drezard Posted March 10, 2007 Author Share Posted March 10, 2007 Thank you Frost... Link to comment https://forums.phpfreaks.com/topic/42057-php-mysql-error/#findComment-203997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.