Jump to content
Sign in to follow this  
scotty86

PHP MySQL Prepared Statements

Recommended Posts

Hello,

https://www.w3schools.com/php/php_mysql_prepared_statements.asp says

Quote

Prepared statements are very useful against SQL injections.

That's true, but it might worth mentioning, that setting a charset (e.g. $conn->set_charset("utf8")) is important, since it can make prepared statements vulnerable to injections. 

For an example injection and explanation take a look here: https://stackoverflow.com/a/12202218/1988569

Stay safe,
scotty86

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