Jump to content

adding to a database (code not working)


Recommended Posts

I'm quite sure that mysql_error() should be showing an error. You haven't put any quotes around the $show_username string.

Link to post
Share on other sites

sorry i must have typed it out wrong the first time

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 'update' = 'update' + 1 WHERE username = bob' at line 1
what should be around $show_username? Edited by beennn
Link to post
Share on other sites

what did Ingolme say in his post? just look at what's around your other values and see what's missing from 'bob'

Link to post
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.

Loading...
×
×
  • Create New...