daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MYSQL *dbconn = 0;
  2. dbconn = mysql_init(NULL);
  3. while (!mysql_real_connect(dbconn, mysql_server,mysql_user, mysql_password, mysql_database, 0, NULL, 0)) {
  4.         cout << "\nSQL Serveriin ei saada yhteytta: " << mysql_error(dbconn);
  5.         usleep(200);
  6. }
  7. MYSQL_RES result;
  8. MYSQL_ROW row;
  9. result = mysql_find(sqlcmd,"mydb");
  10. while ((row = mysql_fetch_row(result)) != NULL) { <<<<<<<<-------------- ERRORI tulee tältä riviltä
  11.     // tee tee
  12. }
  13.  
  14. error: cannot convert 'MYSQL_RES' to 'MYSQL_RES*' for argument '1' to 'char** mysql_fetch_row(MYSQL_RES*)'
RAW Paste Data
Top