php - Limit list using a button -
I want to print the final use of your application for each user, but I'm limited to a specific number to the list I want (that will eventually be configured by the user) ATM I can print everything, but I want to apply a button which will allow 5 events to show and will move forward. Once it is implemented, there is also a backing.
However, my code is as follows:
$ min = 0; If (count ($ time)> 5) {$ aux = 5; } And {$ aux = count ($ time); } If (isset ($ _ POST ['button'])) {if ((calculation ($ time) - $ aux)> 5) {$ aux = aux + 5; $ Min = $ min + 5; } And {$ aux = count ($ time); If (calculation ($ time)> 5) {$ min = calculation ($ time) - 5; }}} For ($ i = $ min; $ i & lt; $ aux; $ i ++) {echo '& lt; Br> ($ I + 1). '' .Det ('Y-M-DH: I: S', $ Time [$ i] ['Time_Stamp']). "\ T". ' Por '. $ 'EPS [' IP '].' & Lt; Br> '; }? & Gt; & Lt; Input name = "button" type = "button" id = "button" onclick = "access.func.php" value = "& gt; & gt;" / & Gt; I can not update the table, mainly because I think the button is not being called properly. EDIT: The AxuTypo was changed.
EDIT2: $ count has been changed in the count ($ time)
First off, your code has a typo
$ axu = aux + 5;
It is $ aux = $ aux + 5; Change and look at
.
Edit:
Keep Input button
in and
By this way:
& lt; Form action = "access.func.php" method = "post" & gt; & Lt; Input name = "button" type = "submit" id = "button" value = "& gt; & gt;" / & Gt; & Lt; / Form & gt;
Comments
Post a Comment