This commit is contained in:
QkoSad
2024-11-28 14:36:15 +02:00
parent 06ea52ead6
commit fd82786671
12 changed files with 22 additions and 213 deletions
+2 -3
View File
@@ -21,9 +21,9 @@ namespace Server
{
try
{
// Open the connection
// open db connection
conn.Open();
// Prepare the SQL query
// prepare SQL query
MySqlCommand cmd = new MySqlCommand();
cmd.Connection = conn;
var queryString = request.QueryString;
@@ -70,7 +70,6 @@ namespace Server
}
catch (Exception ex)
{
// Handle any connection errors
string errorMessage = $"Error: {ex.Message}";
byte[] buffer = Encoding.UTF8.GetBytes(errorMessage);
response.ContentType = "text/plain";