22, August 2008

Display results in a 4x2 display (4 columns, 2 rows) WITH pagination - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Display results in a 4x2 display (4 columns, 2 rows) WITH pagination
« previous next »
Pages: [1] Print

Author Topic: Display results in a 4x2 display (4 columns, 2 rows) WITH pagination  (Read 393 times)
Just another rainy day
*
Posts: 1
10 credits
Members referred : 0


« on: Feb 10, 2008, 02:06:40 AM »

Ok, this one is tricky (for me anyways, one of you guys probably knows this and can do it in your sleep) What I am trying to do is display the results of a mysql query with 8 items on a page and in the following format:

------------------------------------------------------------
|  first data  |  second data  |    third data     |  fourth data  |
-------------------------------------------------------------
|  fifth data  |   sixth data    |  seventh data  |  eigth data    |
-------------------------------------------------------------
                      <- previous page | next page ->

Now I know how to put query data into columns, and I know how to paginate query data, but they seem to conflict combining them, since they both effect the query itself, sort of driving the query.
Evil
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8020
41077 credits
Members referred : 3



« Reply #1 on: Feb 10, 2008, 10:54:06 AM »

Can you give a part of your code?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6300
38626 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Feb 10, 2008, 11:01:42 AM »

something like this?
http://www.finalwebsites.com/demos/php_mysql_nested_repeat_region.php Visit through proxy

you can use this together with this snippet:
http://www.finalwebsites.com/snippets.php?id=37 Visit through proxy

but next you shpuld show us you page we don't provide the solution because you're just asking Wink


Last blog : Create custom backups from your website using cURL
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7584
Tags : pagination fomating sql data Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Display results in a 4x2 display (4 columns, 2 rows) WITH pagination
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Aug 22, 2008, 07:19:30 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.084
Total Topics: 7.439
Total Members: 3.807
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: marthawelch

35 Guests, 4 Users online :

14 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.