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
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++)
> {
>
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);
}