darkcarnival Posted May 25, 2006 Share Posted May 25, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/10446-werid-problem-with-mysql-query/ Share on other sites More sharing options...
karthikeyan_coder Posted May 25, 2006 Share Posted May 25, 2006 let me know the query or script here Quote Link to comment https://forums.phpfreaks.com/topic/10446-werid-problem-with-mysql-query/#findComment-38961 Share on other sites More sharing options...
nogray Posted May 25, 2006 Share Posted May 25, 2006 try to include the username in the '' quotes like 'toro' Quote Link to comment https://forums.phpfreaks.com/topic/10446-werid-problem-with-mysql-query/#findComment-38971 Share on other sites More sharing options...
darkcarnival Posted May 25, 2006 Author Share Posted May 25, 2006 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 ;) Quote Link to comment https://forums.phpfreaks.com/topic/10446-werid-problem-with-mysql-query/#findComment-38974 Share on other sites More sharing options...
darkcarnival Posted May 26, 2006 Author Share Posted May 26, 2006 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 functionany suggestions are fully welcomed :) Quote Link to comment https://forums.phpfreaks.com/topic/10446-werid-problem-with-mysql-query/#findComment-39076 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.