My initial code:
std::string query = "SELECT login,passw FROM people WHERE login = '" + slovo + "'";
const char* q = query.c_str();
qstate = mysql_query(conn, q);
res = mysql_store_result(conn);
I need to use the data (login, password) to get a string in the database. If the string exists, then.... otherwise.... Tell me how to get a string for 2 variables and how to write a condition.