Jump to content

NikJ92

New Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

NikJ92's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. My site is still private, but here is my CSS: What I want to do is align a footer to the bottom of my page that has text such as copyright information and a link to the privacy policy. I can only seem to do this with a fixed position. The problem with that is different pages on my site have different heights depending on the content, and I don't want to edit the position every time I want to add content to one part of my site, or to have the page too long on a page that doesn't have much content. I have a javascript code that sets my three columns to equal height so that if my middle section has more than the others, the others will adjust their height, or vice-versa (not important, but I thought I'd mention that), and I used DIVs in my html. If you need any more info, let me know.
  2. Ah, that makes more sense. That cleared much more up, but I'm still a bit confused. So I'd extract each item and count how many of the layouts there are, store that number to a variable, set $itemsPerPage to 10 (since I want 10 layouts per page), then use numPages = numItems / itemsPerPage for the amount of pages (then probably the ceil() function to round the number up in case it's not an integer?), check if the page is in range? Sorry, still new to scripting. >_<
  3. It does. Yeah, basically. There'd be probably 15 images per page, and one of the layout pages (NFL) has 33, so that'd be about 3 pages. All of the image codes are posted on the nfl.php page, so would I be able to use pagination on my layout pages without using databases? EDIT: Thought I'd mention I have read through the w3schools and tizag tutorials on PHP and most of MySQL and PHP on w3schools, although I only started PHP 4 days ago. For the while loop, could looping through all the img, a, br, hr, etc. tags and putting them to an array work? Hope that makes sense.
  4. I don't understand how you're supposed to use it to split something like Myspace layouts into different pages using the pagination tutorial. It's actually a preview picture of the layout linked to a live preview with the name of the layout at the top and a horizontal rule beneath it, and this is repeated for each layout. So something along the lines of: <br><a href="http://site.com/layouts1.php?layoutpreview=Layout"><img src="img url"></a><br><hr> <br><a href="http://site.com/layouts1.php?layoutpreview=Layout"><img src="img url"></a><br><hr> For two layouts. The code worked for the numbers in the examples, I just don't know how to make this work with those tags in the HTML above.
  5. http://www.phpfreaks.com/tutorial/basic-pagination/page2 I got the examples from the tutorial to function properly, but I'm having trouble using the code for my own purposes. How would I use it for say a Myspace layout site to split a bunch of Myspace layouts into different pages?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.