Skip to content
Advertisement

PHP keeps sending data

The following function keeps loading the page and I can’t find the problem.

The values are:

JavaScript

$id is a $_GET on the url.

The code:

JavaScript

The console via Firebug:

The console via Firebug

I have already established that the pagination function isn’t the problem.

Advertisement

Answer

You have an infinite while loop:

JavaScript

I think you’ve forgotten to add $i++ before the end of the while loop, like so:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement