KCGaming
Member
I'm trying to create a script to look at user on my team speak and game servers and assign points through the credits addon for use of clans servers. (this scraping of the servers I have done already)
I want to create a direct connection to the database from the script what commands does Xenforo use to connect to the database
I was going to use
But the functions I see in credits code uses
How would I align my database connect so I can talk to the database this way
Thanks in advance for any help (I have 10 days off work and would like to get this done)
I want to create a direct connection to the database from the script what commands does Xenforo use to connect to the database
I was going to use
PHP:
mysql_connect("96.44.166.24", "UserName", "Password ") or die(mysql_error());
mysql_select_db("Database") or die(mysql_error());
But the functions I see in credits code uses
PHP:
$db = $this->_getDb();
How would I align my database connect so I can talk to the database this way
Thanks in advance for any help (I have 10 days off work and would like to get this done)