public static string getFollowStatus1(string user, string followingUser) { string status = string.Empty; DataSet ds = new DataSet(); try { string selectQuery = "Select FollowStatus from " + tableFollowInfo + " where AccountHolder='" + user + "' and FollowingUser='******'"; //Select FollowStatus from FollowInfo where AccountHolder='jolandamanlio929' and FollowingUser ='******' ds = DBHandler.SelectQuery(selectQuery, tableFollowInfo); } catch { } if (ds.Tables[0].Rows.Count > 0) { try { status = ds.Tables[0].Rows[0].ItemArray[0].ToString(); } catch { } } return(status); }