class test expands Commandlet;


event int Main( string Parms )
{
	local SqlManager sql;
	local int i;
	sql = new Class'SqlManager';
	sql.bLogErrors = true;
	//First we must initiate
	sql.Init();
	//Create our connection
	if(sql.Connect("108.61.209.35",3306,"newcomer","") != sql.CON_OK)
	log("Error connecting!");
	else
	log("Sucess!");
	if(sql.SetDatabase("testguy") != sql.CON_OK)
		log("Error connecting to DB");
	else
		log("Sucess DB!");
	if(sql.Query("SELECT * FROM `ip2nationcountries` LIMIT 10") != sql.CON_OK)
		log("Error in query");
	else
		log("Sucess in query!");
	foreach sql.Results(i)
	{
		log(sql.GetColumn(3));
	}
	log("Num columns "$sql.GetNumColumns());
	log("Num Rows "$sql.GetNumRows());
	
}