SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist IJoeR's Avatar
    Join Date
    Feb 2003
    Location
    Somewhere in, MD
    Posts
    400
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    3 column layout help in PHP...

    I'm going to have a database of some titles. My layout is 3 columns. I want to set up an admin area where there is a screen that will give the user 3 fields to fill out.

    These fields will determine how many results show up in each column. I think i should use a single query and use Recordcount, but I'm not sure.

    The idea is that its possible that i might need 8 results in the left column, 10 results in the right, and 5 results in the right and that would display a balanced page because of varying amounts of text.

    Let me know how you would approach this problem.

  2. #2
    SitePoint Evangelist IJoeR's Avatar
    Join Date
    Feb 2003
    Location
    Somewhere in, MD
    Posts
    400
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hmm, wondering...

    Let's say I have a db table with 31 items in it. I have a 3 column layout using CSS. I want 1-10 in col1, 11-20, in col2, and 21-31 in col3.

    Any tips on how to achieve this? Maybe something like an IF statement and then output a closing div tag along with a new starting div tag? Am i close?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •