06.01.2017, 15:56
Код:
mysqL_errno(MySQL:handle = MYSQL_DEFAULT_HANDLE)
This is how you can use it after mysql_connect:
Код:
if (mysql_errno()) print("Failed to connect to the database."); // 0 - no errors else print("Successfully connected to the database."); // there's an error