5
I was browsing the site looking for a functional example of paging with AJAX + PHP, when I found this example
Excuse my ignorance, but the 'asynchronous loading' of AJAX causes me doubts..
However, a question arose: In the script, there is a limit made by AJAX of 6 records to be displayed by pages. Above all, there is no limit if I make one SELECT * FROM tabela
. So, did you imply that if there are 500 records on the table, they will all be loaded, but only six per page? Wouldn’t that delay the flow of the site? I mean the loading time?
Other question: How could I change the array in the example for a SELECT
, to be able to use a mysqli_fetch_array
to search for each record line?
Note: If necessary, I will be posting the code (which is quite extensive) for better viewing.
:P o
mysql_*
has died, the author cites themysqli_*
in the question. Why should we not use mysql type functions_*?– rray
Thanks for reminding @rray. The answer was already suitable for mysqli.
– Eduardo H. M. Garcia