problem inserting

Forum related to MySQL

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
Xforce
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 11.12.2006, 13:23

problem inserting

Post 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 ?
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post 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.
Xforce
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 11.12.2006, 13:23

Post by Xforce »

Ok, I've attached my class, I hope you can help me with my problem
You do not have the required permissions to view the files attached to this post.
Post Reply