[MySQL++] same code, no result from second application

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
any help?
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
nvm, I just fixed it like 10 mins ago, I was using debug mode with release libs :X
Topic archived. No new replies allowed.