MYSQL loading rows skips first row
#1

Hi,
I'm loading multiple rows:
pawn Код:
new Result:c = sql_query(sql,"SELECT * FROM pastatai WHERE SklypoID = 0",QUERY_CACHED);
    while(sql_next_row(c))
    {
        printf("Object Found, PastatoID = %d",sql_get_field_assoc_int(c,"PastatoID"));
    }
My database:

But the script starts printing from second row, skipping first one. What do I have to do to make it count first row too?
Reply


Messages In This Thread
MYSQL loading rows skips first row - by zaibaslr2 - 25.01.2015, 11:33
Re: MYSQL loading rows skips first row - by Lordzy - 25.01.2015, 12:55
Re: MYSQL loading rows skips first row - by zaibaslr2 - 25.01.2015, 13:00

Forum Jump:


Users browsing this thread: 1 Guest(s)