18.06.2015, 13:56
That is because rows start counting from 0. If you were to have two rows, it would load the second row instead of the first. That'll give you the wrong result.
Assign your for loop value 'i' to 0 instead of 1.
Assign your for loop value 'i' to 0 instead of 1.
PHP код:
for(new i = 0; i < rows; i++)