Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir ,,
i created the c program that connect to the database ..
and also can able to insert the data into the database

coding is :

Con->Execute("INSERT INTO t2 VALUES(4,'yugesh')",RecordsAffected,1);

this line i used to insert the data into the database
.
but problem is i can't able to give data at dynamically..

how can i solve the problem..
Posted
Updated 25-Jul-11 1:59am
v2

1 solution

Did you read through this[^] section of the documentation?
 
Share this answer
 
Comments
@BangIndia 25-Jul-11 8:15am    
sir.. first i want to say thanks to you sir..
my big confusion over..

but i didn't get the solution for the above my problem sir..
Richard MacCutchan 25-Jul-11 9:26am    
This is not a one line solution, you need to spend some time reading the documentation to understand how to use variables to enter values into your database. You need to read all of the documentation, if you don't find an answer on the first page then look at the index or other section headings. Try also here

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900