
May 29th, 2000, 05:37 AM
|
|
Junior Member
|
|
Join Date: May 2000
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
i want to pass a verible in mysql_query
i tested following code but compile error came for that
String query,acctnbr,amount;
accntnbr = [(whatever the variable is)];
amount = [(whatever the variable is)];
query = "insert into tablename (acctnbr,amount) values (%s,%s)",acctnbr,amount);
mysql_query(&mysql,query);
what is the right and easiest way for that?
thanks
|