Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. string query;
  2.     const char* q;
  3.     query = "INSERT INTO `lib_author` (`name`, `surname`) VALUES ('";
  4.     query += name;
  5.     query += "', '";
  6.     query += surname;
  7.     query += "');";
  8.     q = query.c_str();
  9.     bool t = mysql_query(mysql.connect, q);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement