I know nothing of C++ and therefore need a lilte help editing a C++ app to insert some records into a database.
This is where I am so far
----------------------------------------
#include <sqlite.h>

sqlite *db;


     //insert record into database
     db=sqlite_open("/var/tmp/logger/database/logger.db", 0, NULL);
     query = "insert into call_data";
     query += "(direction, call_time, dest, trunk_no, file_name)values(";
query += "'"details.inout"','"details.statime"','"details.cidn"','"details.channel"','"details.filename;
     sqlite_exec(db, query, NULL, NULL, NULL);
           sqlite_close(db);
--------------------------------------

Can someone tell me if I am going in the right direction. Sorry for being so lazy,but I need to get something working quick.

Lloydie T

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to