Jump to content
MakeWebGames

Recommended Posts

Posted

Hey.

Im trying to learn security, and i've tried to secure the player report on my own. here it is:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Im sure that is secure, but if you think otherwise, please tell me where I went wrong!

Thanks

Posted

Well, you're using sprintf() on a query but not formatting it for a start.

You're using mysql_real_escape_string() on a number also, here's how I'd do it....sort of:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

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