Users Pricing

forum

Home Forums select Query with AND Condition – MindStick

select Query with AND Condition

Anonymous User 1860 27 Nov 2014

I want to select user but i cant get it . Here's my query 

        SqlCommand myCommand = new SqlCommand("Select * from Users where Email=" + UserEmailPass.Email + "And Password=" + UserEmailPass.Password, conn);
        SqlDataReader Detailsreader = myCommand.ExecuteReader();

Is my query correct or not>? please help


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md