Jump to content

Pagination


papaface

Recommended Posts

Hello,
Could anyone help me work pagination into this script?
[code]<?php

require("includes/connect.php");

$id = $_GET["cat"];

$selectcat = mysql_query("select title,author,description,article,category from article where category='".$id."'",$con);

while (list($title,$author,$description,$article,$cat) = mysql_fetch_array($selectcat))
{
print '<table width="85%" border="1">';
print '<tr><td class="viewfilestitle">Title:</td>';
print '<td class="viewfilesdetails">' . $title . '</td></tr>';
print '<tr><td class="viewfilestitle">Author:</td>';
print '<td class="viewfilesdetails">' . $author . '</td></tr>';
print '<tr><td class="viewfilestitle">Description:</td>';
print '<td class="viewfilesdetails">' . $description. '</td></tr>';
print '<tr><td class="viewfilestitle">Article:</td>';
print '<td class="viewfilesdetails"><pre>' . $article . '</pre></td></tr>';
print '<tr><td class="viewfilestitle">Category:</td>';
print '<td class="viewfilesdetails">' . $cat . '</td></tr>';
print '</table><br>';
}

?>
[/code]
I've looked at tutorials on the internet for pagination but I cant work out how to apply the same methods to the above script. Any help would be greatly appreciated.

regards
Link to comment
https://forums.phpfreaks.com/topic/30148-pagination/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.