Skip to content

XAMPP Running really slowly with PHP/MySQL [closed]

I’ve got XAMPP installed on my Windows 7 Computer. I’ve been developing on it for a while now but my development has come to a grinding halt because XAMPP is rendering my PHP pages really slowly. It’…

Modulus in a PHP loop

I’m currently checking whether an entry in a loop is the third iteration or not, with the following code: How can I check if the loop is in its second and not its third iteration? I have tried $i % 2 == 1 to no avail. Answer Modulus checks what’s the leftover of a division. If $i is 10, 10/2