Jump to content
JoãoInacio

login

Recommended Posts

JoãoInacio

olá a todos 

estou com grandes dificuldades a fazer uma query.

cout << "utilizador:"<<endl;
cin >> utilizador;

cout << "palavra pass:" <<endl;
cin >>password;

agora os problemas chegam

"SELECT * FROM contas WHERE nome='utilizador' And pass='password'";

não consigo fazer com que a pesquisa seja feita com sucesso espero que seja fácil de entender mas resumidamente aquilo que eu queria fazer era fazer com a pesquisa em mysql recebece os valores das variáveis

Edited by JoãoInacio

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. 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.