TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 06-14-2009, 03:09 AM   #1 (permalink)
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
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advance Pagination Class Rendair Advanced PHP Programming 13 02-01-2013 11:08 AM
Pagelite Pagination System ioan1k Show Off 3 01-29-2013 12:40 PM
Pagination Or Something Else? Randy General 4 10-22-2012 09:32 AM
Pagination, Funtions, Converting CMellor Absolute Beginners 4 10-22-2012 09:11 AM
Pagination rupam_jaiswal Javascript, AJAX, E4X 0 09-09-2008 09:34 AM


All times are GMT. The time now is 06:59 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design