Update through API C

2004-01-23 Thread NighTiger
Hi, I've wrote this lines of code mysql_query(mp_cnn, "UPDATE pg_info SET x=3, y=5 WHERE pg_id=0"); but when I controll my db the record isn't change. Why? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Update through API C

2004-01-23 Thread NighTiger
mmm I've deleted a select before the update function -- SELECT -- // usiamo mysql_real_query al posto di mysql_query xche' la prima e' piu' veloce if (mysql_real_query(mp_cnn, c_query, strlen(c_query)) != 0) return (-1); else { mp_res = mysql_use_result(mp_cnn); //

[API C] Little problem with MYSQL_ROW

2004-04-14 Thread NighTiger
Hi, After I've filled my MYSQL_ROW variable, I would like print it into the screen -- MYSQL_ROW lop; db.pgInfoSel(); lop = db.PreRow(); // return the reference to filled row for(int i = 0; i <= 7; i++) cout << lop[i] << endl; but, if I would print from 0 to 7 don't pri