FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Lot of entries to multiple pages





cerx
Hello all !

Soon I hope to get my own subdomain here but I have already one problem with a entries.

Lets say: I have 15 entries or rows in MySQL. Fetching them to one page is easy with a for loop. But how can I fetch these entries to two pages example. 10 to one and other 5 to second page.So it is creating links(page=2 or something) if needed And.. I don't want a full script since I'm learning PHP just a snippets or some ideas how to do it.

If I was not clear with my post, please ask some more
Thanks.
mathiaus
See this topic from the past, it has bits of code, discussion on best practices and links to tutorials, etc.
http://www.frihost.com/forums/vt-71187.html
cerx
Woah, that was it. I found the best explanation from google, but this link helped me how to search such thing from google Smile
sonam
Maybe you can each entry put in one SESSION and then display on each page only what you need in this moment.

Code:
$_SESSION['ent1'] = "entry1";
$_SESSION['ent2'] = "entry2";
...


Sonam
Related topics
PHP Toturail
Suggestion: Posts per page
secrets of firefox
Choosing Between Free or Paid Web Hosting
Some questions
A very good PHP MySQL Tutorial
Center the site with the <DIV> tag.
PHPBB multiple accounts signup page?
Passing a variable to multiple pages...sort of?
Server 2 Unusually Slow Today + Serving Blank Pages.
Google Knol - The end of the humble article site?
Same navigation bar on multiple pages
HTML Single link to open multiple pages
Please Hijack this topic!
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.