473,320 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Scrolling through Blog Pages

realin
254 100+
hey guyss, whatzz up..

i have joined this forum 10 mins back and i m here with a query, well i jus want to know while i want to display the enteries from my blog, how to i scroll thru pages..

I mean i display the latest five on first page, then do i need to create manually all other pages??

or there is some technique with is followed ???

Thanks a lot
Feb 16 '07 #1
4 1031
Motoma
3,237 Expert 2GB
hey guyss, whatzz up..

i have joined this forum 10 mins back and i m here with a query, well i jus want to know while i want to display the enteries from my blog, how to i scroll thru pages..

I mean i display the latest five on first page, then do i need to create manually all other pages??

or there is some technique with is followed ???

Thanks a lot
Perhaps you could describe your system a little more thoroughly. It's hard to fix a system which you know nothing about.
Feb 16 '07 #2
realin
254 100+
Perhaps you could describe your system a little more thoroughly. It's hard to fix a system which you know nothing about.

mayne, its jus like this forum you take.. if a thread got 10 or more replies then a next page is created for the further replies.. in the same way, i want to know a way that how do i create a functionality like this ;)

hope its clear now :)
Feb 16 '07 #3
Motoma
3,237 Expert 2GB
mayne, its jus like this forum you take.. if a thread got 10 or more replies then a next page is created for the further replies.. in the same way, i want to know a way that how do i create a functionality like this ;)

hope its clear now :)
Well, I understand you are using PHP; however, I have no clue how you are storing the thread information. Are you using a database? MySQL, MSSQL, PostgreSQL, Access, flat file, hard coded html?
Are you using any database classes such as ADODB?
Are you using any template classes, like Smarty or tinytemplate?
Feb 16 '07 #4
Atli
5,058 Expert 4TB
Hi.

If your using a MySQL database, you will most likely have a query where you fetch your data.

You can add to this qery a limit clause, to limit the data it returns to you.
Somwhat like this
[PHP]
// The number of posts to show on each page
$PostsPerPage = 5;

// The number of the page, say you have
// 15 posts and you show 5 per page
// and your user had selected page 2 of 3
$PageNr = 1; // 1 being page number 2 when counting from 0

// Your sql query
$QUERY = "SELECT * FROM mytbl LIMIT " $PostsPerPage * $PageNr .", ". $PostsPerPage;

[/PHP]

If you are not using MySQL you will have to give us much more detail on your system.
Feb 16 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Martin | last post by:
Thanks to all those who assisted me with my last question re: What is the best way to produce WYSIWYG pages for viewing and printing. I think that I have mastered the form with scrolling picture...
2
by: Tony T | last post by:
I'm not a regular here - strictly an amateur web developer - but I've got so frustrated I'd really appreciate any help anyone can give. I'm working on a PC platform with Win ME. I'm developing a...
1
by: Kirk | last post by:
Is it possible to stop horizontal scrolling whilst still maintaining vertical scrolling within an <IFRAME> ? Within each page of my site I have an IFRAME for content. For some pages there is...
2
by: Just D. | last post by:
Does anybody know how to disable the horizontal scrolling on ASPX form? What JAVA script should be used for that? The standard methods don't help and I'm looking for some JAVA function to fire it...
14
by: Dave | last post by:
My web site is not particularly theme-based, but it contains an Art Gallery I'd like to display in a different perspective. I would like to horizontally scroll it, rather than vertically - as if...
2
by: Fabrizio | last post by:
Hi, I'm trying to deal with ASP.NET and i would like to know if there is any control or any method that allows me, like in JAVA classes, to have, for example, scrolling news with links to...
4
by: Viken Karaguesian | last post by:
Hello all, Can I prevent something, say a <div>, from scrolling when the page is scrolled? I know that with CSS, "background-attach: fixed" will anchor the background element and prevent it from...
6
by: Jon Paal | last post by:
an excellent working solution for scrolling tables appears at this link http://www.litotes.demon.co.uk/example_scripts/tableScroll.html author has no contact page, but I have a question about...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.