Disconnecting from the server

void disconnect()
{
 mysql_close(&connection);
};
This function disconnects from the server. The global variable connection is used to identify the right connection to the server.



root 2016-04-19