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?
VulpesPosted Oct 18, 2012, 11:58 AM
steve pottsPosted Oct 19, 2012, 6:12 AM
VulpesPosted Oct 19, 2012, 5:43 AM
string result = Convert.ToString(command.ExecuteScalar());
steve pottsPosted Oct 19, 2012, 5:13 AM
at the moment, the messagebox is just a temp thing to see if it works, and i get a messagebox just saying "-1"