Dynadot โ€” .com Transfer

[Php] Maths help

Spacemail by SpaceshipSpacemail by Spaceship
Watch

liam_d

The original NP Emo KidEstablished Member
Impact
25
Okay a new one for you, say i have a counter $this->post_count that which each post gets "++" to add 1 onto it, but then say i go to a second page i need to work out how many posts are before it and then add one to that.

What would be the best way? For each page there are 7 posts.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
$page*7+$this->post_count++?

i don't really understand your question.

if you're trying to do it backwards, i think the modulus operator (%) may help - something like $page%7, and it'll give u the remainder when you divide the number of pages by 7.

but i have no clue what your question really is so i cant help
 
0
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back