28.01.2017, 01:45
I don't need that tutorial, I need my database to connect and it is not working, there is no difference from my code and that code...
Code:
public ConnectMySQL() { MHandle = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB); if(mysql_errno() != 0) { print("[MYSQL]: Failed to connect with using Following Informations: "); printf(" Host: %s | User: %s | Password: ****** | Database: %s", SQL_HOST, SQL_USER, SQL_DB); } else { printf("[MYSQL]: Connection Success to database: %s !", SQL_DB); } return 1; }