Jump to content
MakeWebGames

Mysqli result cannot be converted to string?


Coly010

Recommended Posts

The error I'm getting:

Catchable fatal error: Object of class mysqli_result could not be converted to string in C:\xampp\htdocs\Chaos-Era\register.php on line 289

I don't understand why I am getting this error because its not to say I'm echoing the query.

my line of code is literally:

mysqli_query($c, "UPDATE user SET race = $race WHERE userid = $userid");

 

should i be assigning the query to a variable?

Someone lock or delete this please, found the error. my userid variable had an issue

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...