Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using MySql.Data.MySqlClient;
- namespace BlazeGames.Pages
- {
- public class TestPage
- {
- MySqlConnection SqlConnection;
- public void Initalize(MySqlConnection SQLConn)
- {
- this.SqlConnection = SQLConn;
- }
- public object ReturnHTML()
- {
- if(SqlConnection.Ping())
- return ""SQL Ping Complete!"";
- else
- return ""SQL Ping Failed!"";
- }
- }
- }
Add Comment
Please, Sign In to add comment