I want serval pages from 1 to n.how to let the new contennent always on page 1?
steven01
0
Light Poster
Recommended Answers
Jump to PostIm assuming your getting the data from a Database. Ill use the example below on PHP/MySQL setup.
You should use something like this;
<?php $display=10; // The number of records on each page $start=0; $query="SELECT COUNT(*) FROM table_name"; $result=mysql_query($query); $row=mysql_fetch_array($result, MYSQL_NUM); $num_records=$row[0]; //Calculate # of pages …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.