예제 #1
0
 public string PostContent(string postid)
 {
     string Results = null;
     if (OpenConnection() == true)
     {
         fyrirspurn = "SELECT content FROM post WHERE id='" + postid + "'";
         nySQLskipun = new MySqlCommand(fyrirspurn, sqltenging);
         sqllesari = nySQLskipun.ExecuteReader();
         while (sqllesari.Read())
         {
             Results = (sqllesari.ToString());
         }
         CloseConnection();
         return Results;
     }
     return Results;
 }