c my project to connect to the database. Information Please
c my project to connect to the database. Information Please
Here you go.
How To Ask Questions The Smart Way
That should get you on your way.
Geez are we supposed to be mind-readers? How are we supposed to know what language, what compiler, what platform and in your case what database and is it a local or remote DB??
<rolls eyes>
Some people's kids...
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
I stand chastised...Seriously I like doing DB stuff (spent 3 very cool days with the guy who wrote SQLite a year or so ago when we were porting it to CellBE) and I was all fired up over helping out with a DB project when I click into and see the equivalent of "ME WANT DB PROJECT. GIVE ME CODE."