Jump to content

MYSQL Error help - Please


Drezard

Recommended Posts

Hello, What does this error mean?

 

You winError in query: UPDATE user_currents SET hp_cur='172', hp_max='176', mp_cur='176', mp_max='176' exp_cur='1', exp_max='120' WHERE user='drezard'. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exp_cur='1', exp_max='120' WHERE user='drezard'' at line 1

 

It relates to this line of code:

 

				$query ="UPDATE user_currents SET hp_cur='$this->hp_cur', hp_max='$this->hp_max', mp_cur='$this->mp_cur', mp_max='$this->mp_max'    		                    exp_cur='$this->exp_cur', exp_max='$this->exp_max' WHERE user='$user'";

				$result = mysql_query($query) or die ("Error in query: $query. ".mysql_error());

 

Cheers, Daniel

Link to comment
https://forums.phpfreaks.com/topic/41931-mysql-error-help-please/
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.