daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest May 19th, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public void send(TextMessage message)
  2.         {
  3.             try
  4.             {
  5.  
  6.                 String SQL_Data_String = "'" + message.from + "', '" + message.body + "', '" + message.to + "', '" + GetSQLDateString(message.dateTime) + "', '5', '5'";
  7.  
  8.                 String SQL_String = "INSERT INTO inbox(" + m_InboxTableString + ") VALUES(" + SQL_Data_String + ")";
  9.  
  10.                 queryHandler SQL_Query = new queryHandler();
  11.  
  12.                 SQL_Query.ExecuteScalar(connString, SQL_String);
  13.             }
  14.  
  15.             catch (MySqlException m)
  16.             {
  17.                 Console.WriteLine("Could not send record to the database" + m);
  18.             }
  19.  
  20.         }
RAW Paste Data
Top