Re: C API first row not being returned from a query

2003-10-27 Thread Carl B. Constantine
* Santino ([EMAIL PROTECTED]) wrote: > I use : > >numRows = mysql_num_rows( Result); > numFields = mysql_num_fields( Result); > >for( j=0; j < numRows; j++) { > mysql_data_seek( Result, j); > CurrentRow = mysql_fetch_row( Result); >

Re: C API first row not being returned from a query

2003-10-27 Thread Santino
I use : numRows = mysql_num_rows( Result); numFields = mysql_num_fields( Result); for( j=0; j < numRows; j++) { mysql_data_seek( Result, j); CurrentRow = mysql_fetch_row( Result); for( k = 0; k < numFields; k++)

C API first row not being returned from a query

2003-10-26 Thread Carl B. Constantine
I'm writing an application and have the following SQL Query written in C/GTK+ code: select customer_id, phone, last_name, first_name, company, account_code from customers; OK, I then issue the following C commands: results = mysql_store_result(conx); numRows = mysql_num_rows(results); g_