2020-10-30, 07:49 PM
(2020-10-26, 11:02 AM)Pinch Wrote:(2020-10-26, 10:47 AM)Expert* Wrote:(2020-10-26, 10:30 AM)Pinch Wrote:(2020-10-26, 10:06 AM)Expert* Wrote:PHP Code:for(new i = 0; i < rows && i < MAX_GIFT; i)
or
PHP Code:for(new i = 0; i < rows; i)
{
? ? if( i ==?MAX_GIFT ) break;
? ? // ...
Uhm, it obviously isn't a problem because their database's ending is 50 and their loop was already limiting it to MAX_GIFT :D
But yeah, if( i ==?MAX_GIFT ) break; is fine
It's something else, probably related to g_gift
Just in case. He doesn't look like someone who knows what he is doing...
I know but in his code it's impossible to go over 100 anyways... It's < MAX_GIFTS....
I was commenting on your example.. ?
Unless we think that his?SQL statement is?limited to MAX_GIFT??... ( We can't see it so i doubt it?)