SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Zealot DBallerz01's Avatar
    Join Date
    Jan 2004
    Location
    CT
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what should I use ?

    i want to display the items on the right in 4 columns and fill in the rows as they user gets more items. How would I do this ? I have tried a few things, but they didnt work out and I dont know how I should do this.
    To see the items go here. It looks like this http://armynation.com/1.jpg
    and i want it to look like this http://armynation.com/2.jpg

  2. #2
    La la la la la bronze trophy lieut_data's Avatar
    Join Date
    Jun 2003
    Location
    Waterloo, ON
    Posts
    1,517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DBallerz01
    i want to display the items on the right in 4 columns and fill in the rows as they user gets more items. How would I do this ? I have tried a few things, but they didnt work out and I dont know how I should do this.
    To see the items go here. It looks like this http://armynation.com/1.jpg
    and i want it to look like this http://armynation.com/2.jpg
    Put a break after every fourth image:

    PHP Code:
    $i 0;
    while(
    $image get_new_image())
    {
       echo 
    $image->get_image();
       
    $i++;
       if (
    $i == 0) echo '<br />';

    My name is Steve, and I'm a super-villian.

  3. #3
    SitePoint Zealot DBallerz01's Avatar
    Join Date
    Jan 2004
    Location
    CT
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks, ill try that

  4. #4
    SitePoint Zealot DBallerz01's Avatar
    Join Date
    Jan 2004
    Location
    CT
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    get_new_image isnt a function..

  5. #5
    Now with customized title Jump's Avatar
    Join Date
    Sep 2002
    Location
    The Restaurant at The End of The Universe
    Posts
    1,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think that was just an example.

  6. #6
    SitePoint Zealot DBallerz01's Avatar
    Join Date
    Jan 2004
    Location
    CT
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i see

  7. #7
    Now with customized title Jump's Avatar
    Join Date
    Sep 2002
    Location
    The Restaurant at The End of The Universe
    Posts
    1,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should post the code you are using to display the images.

  8. #8
    SitePoint Zealot DBallerz01's Avatar
    Join Date
    Jan 2004
    Location
    CT
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    if($row[item_1] > 0) {
    print 
    "<td width='33%' align='center'><a href='javascript:preview(31)' ONMOUSEOVER='popup('Storage Chest','808080')'; ONMOUSEOUT='kill()'>";
    print 
    " <img border='0' src=storagechest.gif' width='42' height='45'></a>";
    print 
    " <font size='5' color='#D36435'><b>$row[item_1]</b></font></td> ";
    }

    ect ect 

  9. #9
    Now with customized title Jump's Avatar
    Join Date
    Sep 2002
    Location
    The Restaurant at The End of The Universe
    Posts
    1,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is that contained in a loop? You should post the whole loop. I'm assuming it's a while loop.

  10. #10
    SitePoint Zealot DBallerz01's Avatar
    Join Date
    Jan 2004
    Location
    CT
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no, can we contact though ICQ ?

  11. #11
    Now with customized title Jump's Avatar
    Join Date
    Sep 2002
    Location
    The Restaurant at The End of The Universe
    Posts
    1,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure, it's in my profile.

  12. #12
    SitePoint Zealot DBallerz01's Avatar
    Join Date
    Jan 2004
    Location
    CT
    Posts
    172
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jump helped me for two days and stayed up half the night figuering out my problem with me. He has very helpful and all around nice guy. Problem Solved.


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
  •