#define MYSQL_HOST \"localhost\" //This will connect you to your local host#define MYSQL_USER \"root\" //default phpMyAdmin username#define MYSQL_PASS \" \" //default phpMyAdmin password is nothing, until you change it!// -------> IMPORTANT LINE < -----------//#define MYSQL_DB \"szerver\" //Now here you have to put your database\'s name. (Put what you put in the phpMyAdmin in above step
mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);
if(mysql_errno(kapcs) != 0) printf(\"MySQL hiba! Hibakód: %d\", mysql_errno(kapcs));