Jump to content

Recommended Posts

hello,

a script of mine that has a login area doesnt seem to like usernames that have or in the name.

like if a user uses toro or coreuser will not let a user log in correctly displaying errors evetywhere.

now my query is simple, the anti-injection function im using i disabled but still seems to cause problems.

if you want to see anything that could help you help me, just let me know and I'll provide it for you.

thanks.
Link to comment
https://forums.phpfreaks.com/topic/10446-werid-problem-with-mysql-query/
Share on other sites

here is the query:

[code]"SELECT * FROM ebb_users WHERE Username='$logged_user'"[/code]

$logged_user is either $_COOKIE or $_SESSION(depends on what type of login the user chooses).

the anti_injection script can be found on the code library from this site ;)
found the problem, its the anti-injection function i found on this site, if i see the author's email on their profile i might let them know about this problem.

for now I plan to do some research on a replacement to this injection function

any suggestions are fully welcomed :)
This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.