Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void send(TextMessage message)
- {
- try
- {
- String SQL_Data_String = "'" + message.from + "', '" + message.body + "', '" + message.to + "', '" + GetSQLDateString(message.dateTime) + "', '5', '5'";
- String SQL_String = "INSERT INTO inbox(" + m_InboxTableString + ") VALUES(" + SQL_Data_String + ")";
- queryHandler SQL_Query = new queryHandler();
- SQL_Query.ExecuteScalar(connString, SQL_String);
- }
- catch (MySqlException m)
- {
- Console.WriteLine("Could not send record to the database" + m);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement