25.02.2013, 17:49
phpMyAdmin shows no changes in my database no INSERT or CREATE, why ?
I checked my: host, database, pass and username and there all right.
I checked my: host, database, pass and username and there all right.
PHP код:
//============================================================================//
// Includes //
//============================================================================//
#include <a_samp>
#include <a_mysql>
#include <zcmd>
#include <sscanf2>
//============================================================================//
// Defines //
//============================================================================//
#define host ""
#define user ""
#define pass ""
#define db ""
//============================================================================//
// Main //
//============================================================================//
main() {}
public OnGameModeInit() {
mysql_debug(1);
print("-------------------------------------------------------------");
print(" Game Mode Loaded!");
print("-------------------------------------------------------------");
mysql_connect(host, user, db, pass);
mysql_query("INSERT INTO `accounts` (username, password) VALUES ('Nickname', SHA('Pass'))");
if(mysql_ping()) {
print("Connection to database successful.");
} else if (!mysql_ping()) {
print("Connection to database failed.");
} else {
print("Unknown error!");
}
return 1;
}