Jump to content
php.lv forumi

lapu šķirstīšana.


thesnarkie

Recommended Posts

zinu, ka google varētu atrast visādus jau gatavus, bet tas nav interesanti, gribu pats uztaisīt.

tā, sākumā es domāju, ka kopējo komentāru daudzumu jāizdala ar 10 (tik rāda vienā lapā), lai noskaidrotu cik lapas būs. piemēram, 33 komentāri, sanāk 4 lapas, bet dalot būs 3.3 bet to jau nevar noapaļot uz 4. :D ok, tomēr šitais laikam nebūs pareizais veids kā sākt.

kā labāk sākt?

Link to comment
Share on other sites

<div class="pnavigMactive"><a id="1" onclick="return Cpages.request('/p_gamma/news/rq/r_comments.php?&page=<? echo 1 ?>&news_id=<? echo $get_news_id ?>', '#news_comments_r', '<? echo 1 ?>'); return false;" href="?action=read&page=<? echo 1 ?>&news_id=<? echo $get_news_id ?>"><? echo 1 ?></a></div>

Un kāpēc man viņš maina URL, ja ieliktu return false;? :) (js ieslēgts..)

Edited by thesnarkie
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...