This commit is contained in:
Rushabh Gosar
2022-01-07 19:52:48 -08:00
parent 75e0d2f75a
commit 8ea938029a
127 changed files with 25750 additions and 20 deletions

View File

@@ -0,0 +1,27 @@
<?php
define ("HOSTNAME", "localhost");
define ("USERNAME", "rushjzvr_rushabh");
define ("PASSWORD", "Rushabh%1");
class Connector {
var $connection;
var $clConnection;
var $dbName = "rushjzvr_TreasureHunt";
function __construct () {
}
function runQuery($query) {
$link = mysql_connect(HOSTNAME, USERNAME, PASSWORD);
mysql_select_db($this->dbName, $link);
$result = mysql_query($query, $link);
// $this->clConnection = new mysqli(HOSTNAME, USERNAME, PASSWORD, $this->dbName);
// $result = $this->clConnection->query($query);
return $result;
}
}
?>