i have a very simple table in mysql, i can connect etc fine, and i think i have the query i need, but how do i get this working in c#?
what it will basically do is find a username based on the windows username.
sUserName = Environment.UserName;
"'select sms_un from smsusers where domain_un = ' + sUserName;";
sorry its quite hard to describe :) does this make sense?

VulpesRank #55 · 29.2K reputationPosted Oct 18, 2012, 7:58 AM EDT
steve potts29 reputationPosted Oct 19, 2012, 1:13 AM EDT
at the moment, the messagebox is just a temp thing to see if it works, and i get a messagebox just saying "-1"
VulpesRank #55 · 29.2K reputationPosted Oct 19, 2012, 1:43 AM EDT
string result = Convert.ToString(command.ExecuteScalar());
steve potts29 reputationPosted Oct 19, 2012, 2:12 AM EDT