Jump to content
MakeWebGames

Whats the difference between a unformatted and a formatted string?


Aurora078

Recommended Posts

sprintf is a way to somehow secure yourself against SQL Injections. However it doesn't fix all and therefore it is not the solution I would recommend. I would myself use mysql_real_escape_string around any string and a ($var+0) against any number. With that you should be fine against SQL injections (again that's only part of the hacking issues your scripts can have).

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