Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT
Imports Microsoft.VisualBasic Imports System.Web.Configuration Imports System.Data.SqlClient Public Class wall Private Shared local As String = WebConfigurationManager.ConnectionStrings("wallConnectionString").ConnectionString Shared Function addpost(ByVal post As String) As String Using con As New SqlConnection(local) Dim cmd As New SqlCommand(Nothing, con) Dim username As String = "runnerjp" cmd.CommandText = "INSERT into messages (message,username,created) VALUES (@post," & username & "" & DateTime.Now.ToString("o").Substring(0, 23) & ")" cmd.Parameters.AddWithValue("@post", post) con.Open() cmd.ExecuteNonQuery() con.Close() End Using End Function End Class
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.