PHP
stock sqlOpen()
{
if(IS_TESTSERVER)
{
MySQLConnections[0] = mysql_connect("localhost", "c_samp", "test_wcf", "AfVwTxbHBzDj2NCM");
MySQLConnections[1] = mysql_connect("localhost", "c_samp2", "test_wcf", "AfVwTxbHBzDj2NCM");
MySQLConnections[2] = mysql_connect("localhost", "c_samp3", "test_wcf", "AfVwTxbHBzDj2NCM");
MySQLConnections[3] = mysql_connect("89.219.521.11", "dbo00042787", "db00042787", "mAHBgBp0rRppuNdkf6Sk");
}
else
{
// Server
MySQLConnections[0] = mysql_connect("localhost", "c_samp", "wcf", "AfVwTxbHBzDj2NCM");
MySQLConnections[1] = mysql_connect("localhost", "c_samp2", "wcf", "AfVwTxbHBzDj2NCM");
MySQLConnections[2] = mysql_connect("localhost", "c_samp3", "wcf", "AfVwTxbHBzDj2NCM");
MySQLConnections[3] = mysql_connect("89.219.521.11", "gtasc", "gtasc_forum", "SQVkUEKLaMP5pQBEvNWr");
}
}
stock sqlClose()
{
mysql_close(MySQLConnections[0]);
mysql_close(MySQLConnections[1]);
mysql_close(MySQLConnections[2]);
}
Alles anzeigen
Kann mir einer per // sagen wie das richtig ist? ...
z.b so
//SERVER //Name oder db keine ahnung also will wissen was das bedeutet
MySQLConnections[0] = mysql_connect("localhost", "c_samp", "wcf", "AfVwTxbHBzDj2NCM");
LG