i have goal to send data from C++ code to mariaDB. I'm struggling with compilation. Will be happy as an elephant if you can help me how to send float into database. :)
float pi=3.14;
if (mysql_query(conn, "INSERT INTO meranie VALUES ('%f')",pi) != 0)
{
fprintf(stderr, "Query Failure\n");
return EXIT_FAILURE;
}