mysql_fetch_row problem

2006-11-24 Thread Игорь Александров
Hello all! Im am programming on С++ for mysql. I've got a problem with mysql_fetch_row() function. When I want to make a query foe MySQL server I do this: mysql_real_query() then mysql_store_result() and then mysql_fetch_row() All was well, but today my program has fallen with an error

Re: mysql_fetch_row problem

2001-01-24 Thread Gonzalo Aguilar
Muhd Zamri MS wrote: > > Hi... > > I need to somebody clarify what is the problem with this..: > > MYSQL mysql; > MYSQL_RES *result; > MYSQL_ROW rows; > int i,n; > > . > . > . > > result = mysql_store_result(&mysql); > > n = mysql_num_rows(result); > > for(i=0;i<=n;i++) > { >

mysql_fetch_row problem

2001-01-21 Thread Muhd Zamri MS
Hi... I need to somebody clarify what is the problem with this..: MYSQL mysql; MYSQL_RES *result; MYSQL_ROW rows; int i,n; . . . result = mysql_store_result(&mysql); n = mysql_num_rows(result); for(i=0;i<=n;i++) { rows = mysql_fetch_row(result); printf("%s\n",rows); }