Example #1
0
 //计算未读消息条数
 public string Get_msgCount(string user)
 {
     string sql = "select count(*) from message where messageState=" + SQLString.GetQuotedString("0") + "and messageTo=" + SQLString.GetQuotedString(user);
     Database db = new Database();
     return db.GetScalar(sql);
 }