Thread: Pagination
View Single Post
Old 06-14-2009, 03:09 AM   #1 (permalink)
Randy
The Acquainted
 
Randy's Avatar
 
Join Date: May 2007
Location: Your G/F's Closet
Posts: 114
Thanks: 7
Randy is on a distinguished road
Default Pagination

So i know this has been asked a billion times (maybe a trillion but idk), but i tried google, tutorial sites, the search feature here and nothing seems to be working for me i keep getting errors or its not what i need so here i come asking for help again.

I have this to display my data as it is designed to function as a forum but im calling it 'admin notes' in my script.
PHP Code:
            <?php
            
while($rows mysql_fetch_array($admin_forum_result)) {
            
$dateformat "M j, Y";
            
?>
            <tr>
                <td class="table_check"><input type="checkbox" class="noborder" /></td>
                <td class="table_date"><? echo date($dateformat ,$rows['datetime']); ?></td>
                <td class="table_title"><? echo $rows['topic']); ?></td>
                <td><? echo $rows['category']); ?></td>
                <td><? echo $rows['priority']); ?></td>
                <td><? echo $rows['username']); ?></td>
            </tr>
            
            <?php ?>
I want to use pagination to display 5 rows (topics) per page..

My database looks like this:
DB NAME = staff
TABLE NAME = adminforum_question
ROWS = id, topic, message, name, datetime, priority, category

Every tutorial i read kept giving me errors and i got frustrated figuring it out so.

Any help is appreciated.
__________________
Real Programmers always confuse Christmas and Halloween because Oct31 == Dec25 - Andrew Rutherford
Send a message via AIM to Randy Send a message via MSN to Randy
Randy is offline  
Reply With Quote