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
4 1031
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.
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 :)
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?
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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...
| |