Jump to content

PHP MySQL Error


Drezard

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.