Re: C API Query Semantics

2003-06-19 Thread gerald_clark
Look at the source for the mysql client. It is a perfect example. Sean Macmillan wrote: Using the C API I have written a program that calls mysql_query() on a table with values I know to be in the table. It returns fine and I then call mysql_store_result. The problem I am having is figuring ou

Re: C-API Query

2002-01-07 Thread Aigars Grins
Hi, [..] > produces the following error messages. > > /tmp/ccPhnnJk.o: In function `main': > /tmp/ccPhnnJk.o(.text+0x14): undefined reference to `mysql_init' > /tmp/ccPhnnJk.o(.text+0x5a): undefined reference to `mysql_real_connect' > /tmp/ccPhnnJk.o(.text+0x6d): undefined reference to `mysql_que

RE: C-API Query

2002-01-07 Thread John Lodge
Hello, I have corrected the code as I would have written it. Also are you sure the file mysql.h is where you think it is? #include #include main() { int sel; MYSQL mysql=NULL; MYSQL *connection; MYSQL_RES *result; mysql_init(&mysql); if(mysql == N