Page 1 of 1

problem inserting

Posted: 22.01.2007, 10:00
by Xforce
I have a problem,

I'm using the borland c++ 6.0, and now with a project I'm trying to put it in a class, so I have now 2 components in the class : ZConnection, ZQuery.

When I try to run a update query: "UPDATE run SET `rejected` = `rejected` +1 WHERE `ID` = 4" it does not execute the query, but if I do this trough a created form and then place the 2 objects it works fine..

I made several functions in the class: Connect(), AddQuery(AnsiString Query), StartQuery(), SqlCleanUp().

My first call:

Connect(); (I set the params correctly to mysql 5.0, since it has a connection).

Second call:

AddQuery("UPDATE run SET `rejected` = `rejected` +1 WHERE `ID` = 4");

Third call:
StartQuery(); //And nothing happens, no connectivity at all

Is there anything that I forget or don't see ?

Posted: 22.01.2007, 10:59
by mdaems
No idea XForce. But it's quite difficult to judge this as we don't know what's behind your class... So probably we need your code to do something about it.

Mark

BTW, if you want to contact me in dutch : just use a PM.

Posted: 22.01.2007, 11:35
by Xforce
Ok, I've attached my class, I hope you can help me with my problem