Jump to content
Sign in to follow this  
dcole.ath.cx

Adding Sysmbols to database

Recommended Posts

When I have things like +, =, and ' in the data I insert into my MySQL Data Base Table it doesn't work. How can I fix this?If this isn't a problem for MySQL, it could be some where when I'm extracting the data. PHP fetches the data in the database, then sends it through AJAX to the browser.Thanks.

Share this post


Link to post
Share on other sites

Those symbols "work" fine, they do different things depending on the context. A plus operator adds two numbers, obviously the equal operator is for assignment, and a single quote is a string delimiter. If the symbols are inside a string (the quote would need to be escaped) they have no special meaning. If you're having a problem with a query you can post that and we can figure out why it's not doing what you want.

Share this post


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...
Sign in to follow this  

×
×
  • Create New...