c++ with sqlite3 insert function(not inserting values)

I am using c++ with sqlite3

I have a database(test.db) with a table of testTable

inside the testTable it has the following attribute

_id|randomText

I tried inserting a randomText into the database after my input but it's not inserting into the database.

my code http://pastebin.com/TvuNqFsF

need help. thanks
foo.cpp:43:36: error: ‘insertIntoTable’ was not declared in this scope


1
2
3
//insertValue()
   rc = sqlite3_prepare_v2(db, sql, strlen(sql), &stmt, &pzTest) == SQLITE_OK ; //here `rc' is a boolean
   if(rc == SQLITE_OK ) //here you threat it as an error code 
Also, ¿what is the justification for `rc' and `sql' to be global?
I see. I fixed everything up already. guess I am too tired yesterday till I don't know what am I coding.thanks for your help anyway
Topic archived. No new replies allowed.