Ravi raj schrieb:
> Dear walter Harms,
>
> Thanks for your valuable solution, but in the code which
> you provided is printing only one row , if i try to print whole table,
> or 2, or 3, columns fully means its giving segmentation fault, kindly
> check the below code for furthur in
|
|
}
|
//free(sel_smt);
mysql_free_result(res);
mysql_close(MySQL);
exit(0);
}
------code
ends here
Thanks and regards,
Ravi
- Original Message -
From: "walter
hi ravi,
this works for me. it should help
you to get a starting point
re,
wh
/*
simpple DB connect test
gcc -L/usr/lib/mysql -lmysqlclient connect.c
*/
#define _GNU_SOURCE
#include
#include
#include
int main()
{
MYSQL *MySQL;
MYSQL_ROW row;
MYSQL_RES *res;
Dear All,
I want to connect MYSQL with following C application , while i'm
trying to retrive the query generated , its corrupting the memory.
Is there any solution , to retrive the query generated with out any memory
crashes?
Please help me to solve this problem.
code a