Jump to content

How to store specialchars in a database


Recommended Posts

I want to store the following string: "123<456" in a MySQL-Database using PHP, but when I try so, the "&" is interpreted as bitwise AND-Operator and the result is "579". What I should do to store the original string?

Link to post
Share on other sites

What does your code look like? There is no way the "&" could be interpreted as an operator if it is inside a string unless you have a severe security vulnerability in your code.

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...