MySQL Query not displaying all results.
#1

I feel that the IN operator is causing havoc. Essentially, I'm checking to see if 3 ID's (3 sample slots) exist but it only returns 1 result and I am having great difficulty, any assistance would be appreciated.

BSub is definitely getting submitted.

pawn Code:
new query[256];
format(query, sizeof(query), "SELECT * FROM `arecords` WHERE PSQLID IN(%d, %d, %d)", BSub[playerid][0], BSub[playerid][1], BSub[playerid][2]);
mysql_tquery(dbHandle, query, "GetBloodResult", "i",playerid);
pawn Code:
for(new x = 0; x < 3; x++)
    {
        if(BSub[playerid][x] == cache_get_row_int(x, 1) )
        {
            BSampRes[playerid][x] = 1;
            printf("Sub 0 called");
            printf("RESULT FROM THE ROW %d", cache_get_row_int(x, 1));
        }
    }
Reply


Messages In This Thread
MySQL Query not displaying all results. - by Dokins - 12.06.2017, 20:01
Re: MySQL Query not displaying all results. - by Vince - 12.06.2017, 21:19
Re: MySQL Query not displaying all results. - by Dokins - 12.06.2017, 21:31
Re: MySQL Query not displaying all results. - by Dokins - 13.06.2017, 23:36
Re: MySQL Query not displaying all results. - by Dokins - 15.06.2017, 14:40
Re: MySQL Query not displaying all results. - by JasonRiggs - 15.06.2017, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)