Feb 16, 2012 at 7:26am UTC
Hello,
about 3 months ago I made simple chat using MySQL++ which is working fine, login function:
http://pastebin.com/Mdup4zi6
but today I'm creating Control Panel, I've copied and changed this function a little bit, but i'm getting 0 results (if I copy syntax to navicat I'll get password so...)
login function:
http://pastebin.com/XmzdVzFx
the problem is that result.size is 0, even if I have right username in DB
1 2 3
queryy += "SELECT * FROM accounts WHERE login = '" ;
queryy += lUsername;
queryy += "'" ;
and how I said, navicat is returning 1 result (which is right)
lUsername is right (I made a check with MessageBox)
Last edited on Feb 16, 2012 at 7:28am UTC
Feb 16, 2012 at 4:59pm UTC
What happens if you first try without the Username? (Or is it necessary to even get a result)
queryy += "SELECT * FROM accounts" ;
Last edited on Feb 16, 2012 at 4:59pm UTC
Feb 16, 2012 at 5:28pm UTC
nvm, I just fixed it like 10 mins ago, I was using debug mode with release libs :X